curl --request POST \
--url https://base-mainnet.core.chainstack.com/2fc1de7f08c0465f6a28e3c355e0cb14 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_getTransactionReceipt",
"id": 1,
"params": [
"0x1759c699e6e2b1f249fa0ed605c0de18998bc66556cd6ea3362f92f511aeb06a"
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": {
"transactionHash": "<string>",
"transactionIndex": "<string>",
"blockHash": "<string>",
"blockNumber": "<string>",
"from": "<string>",
"to": "<string>",
"cumulativeGasUsed": "<string>",
"gasUsed": "<string>",
"contractAddress": "<string>",
"logs": [
{
"removed": true,
"logIndex": "<string>",
"transactionIndex": "<string>",
"transactionHash": "<string>",
"blockHash": "<string>",
"blockNumber": "<string>",
"address": "<string>",
"data": "<string>",
"topics": [
"<string>"
]
}
],
"logsBloom": "<string>",
"status": "<string>"
}
}
curl --request POST \
--url https://base-mainnet.core.chainstack.com/2fc1de7f08c0465f6a28e3c355e0cb14 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_getTransactionReceipt",
"id": 1,
"params": [
"0x1759c699e6e2b1f249fa0ed605c0de18998bc66556cd6ea3362f92f511aeb06a"
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": {
"transactionHash": "<string>",
"transactionIndex": "<string>",
"blockHash": "<string>",
"blockNumber": "<string>",
"from": "<string>",
"to": "<string>",
"cumulativeGasUsed": "<string>",
"gasUsed": "<string>",
"contractAddress": "<string>",
"logs": [
{
"removed": true,
"logIndex": "<string>",
"transactionIndex": "<string>",
"transactionHash": "<string>",
"blockHash": "<string>",
"blockNumber": "<string>",
"address": "<string>",
"data": "<string>",
"topics": [
"<string>"
]
}
],
"logsBloom": "<string>",
"status": "<string>"
}
}
eth_getTransactionReceipt
retrieves the receipt of a transaction by its hash. This receipt includes details such as the transaction’s outcome (status), gas used, and logs generated by the transaction. This method is crucial for confirming transaction execution and for interacting with smart contracts.
transactionHash
— the hash of the transaction for which the receipt is being requested.result
— an object containing the transaction receipt details, including the transaction hash, index, block hash, block number, from and to addresses, cumulative gas used, gas used by this transaction, contract address (if a contract was created), an array of logs, the logs bloom filter, and the status of the transaction (1 for success, 0 for failure).eth_getTransactionReceipt
method is essential for:
Transaction receipt for the given transaction hash
The response is of type object
.