Appearance
eth_getTransactionReceipt
served · same as reth
Returns the receipt of a transaction in a block. The receipt has the status, the gas used and the logs.
When to use
Use it to check if a transaction succeeded, to read its logs, or to find the address of a new contract.
Example
bash
curl -s -X POST -H 'Content-Type: application/json' \
--data '{"jsonrpc": "2.0", "id": 1, "method": "eth_getTransactionReceipt", "params": ["0xa457d1d714f7c63b99f3846b390c13ae45d5f41952cc657d369b439b8fc8fa16"]}' \
http://127.0.0.1:8547json
{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_getTransactionReceipt",
"params": [
"0xa457d1d714f7c63b99f3846b390c13ae45d5f41952cc657d369b439b8fc8fa16"
]
}Response
Live mainnet, block 26193069, 2026-10-14. Checked against reth 2.7: equal.
json
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"type": "0x2",
"status": "0x1",
"cumulativeGasUsed": "0x3e067",
"logs": [
{
"address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x000000000000000000000000000000000004444c5dc75cb358380d2e3de08a90",
"0x0000000000000000000000000000000aa232009084bd71a5797d089aa4edfad4"
],
"data": "0x0000000000000000000000000000000000000000000000000000000082bedcbe",
"blockHash": "0x88392e71b7c4893c80cadfdeadcbaa91add6a41a1a9e2bda3aef6774053617a5",
"blockNumber": "0x18facad",
"blockTimestamp": "0x6acfe2e7",
"transactionHash": "0xa457d1d714f7c63b99f3846b390c13ae45d5f41952cc657d369b439b8fc8fa16",
"transactionIndex": "0x0",
"logIndex": "0x0",
"removed": false
},
{
"address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x000000000000000000000000000000000004444c5dc75cb358380d2e3de08a90",
"0x0000000000000000000000000000000aa232009084bd71a5797d089aa4edfad4"
],
"data": "0x000000000000000000000000000000000000000000000000000003bd97020d20",
"blockHash": "0x88392e71b7c4893c80cadfdeadcbaa91add6a41a1a9e2bda3aef6774053617a5",
"blockNumber": "0x18facad",
"blockTimestamp": "0x6acfe2e7",
"transactionHash": "0xa457d1d714f7c63b99f3846b390c13ae45d5f41952cc657d369b439b8fc8fa16",
"transactionIndex": "0x0",
"logIndex": "0x1",
"removed": false
},
{
"address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x000000000000000000000000000000000004444c5dc75cb358380d2e3de08a90",
"0x0000000000000000000000000000000aa232009084bd71a5797d089aa4edfad4"
],
"data": "0x000000000000000000000000000000000000000000000000000000006c61807b",
"blockHash": "0x88392e71b7c4893c80cadfdeadcbaa91add6a41a1a9e2bda3aef6774053617a5",
"blockNumber": "0x18facad",
"blockTimestamp": "0x6acfe2e7",
"transactionHash": "0xa457d1d714f7c63b99f3846b390c13ae45d5f41952cc657d369b439b8fc8fa16",
"transactionIndex": "0x0",
"logIndex": "0x2",
"removed": false
},
"... 8 more items"
],
"logsBloom": "0x000000000000000004000000000000000000000000000000000000000000000000000000200000000010000000000100020000000c0000000000000002000002000000000000000009000108000000000000000000000020000000000000000000000000000000000000000000000000000000000000020000000010000000000000040840000000000000000000000000000000010000000000000000100000400000000000200000000080100000000000000000000000000000000000000000000802000000... 114 more characters",
"transactionHash": "0xa457d1d714f7c63b99f3846b390c13ae45d5f41952cc657d369b439b8fc8fa16",
"transactionIndex": "0x0",
"blockHash": "0x88392e71b7c4893c80cadfdeadcbaa91add6a41a1a9e2bda3aef6774053617a5",
"blockNumber": "0x18facad",
"gasUsed": "0x3e067",
"effectiveGasPrice": "0xad66c85",
"from": "0xc917c3fa468f2c4b9c84c72caa46420eb9825249",
"to": "0x0000000aa232009084bd71a5797d089aa4edfad4",
"contractAddress": null
}
}Parameters
| Name | Type | Required | Meaning |
|---|---|---|---|
transactionHash | 32-byte hash | yes | The hash of the transaction. |
Returns
The receipt, or null when the transaction is not in a block yet or the node does not know it. See Receipt.
Notes and limits
statusis0x1for success and0x0for failure. A failed transaction is in the block and pays for its gas.- The node has the receipts of blocks from its start block.
Errors
| Code | Message | When |
|---|---|---|
| -32602 | Invalid params | A parameter is missing or does not parse. data has the text of reth, with the position. |
Compared with reth
The live example above gives the same answer on Cinder and on reth 2.7.
Related methods
eth_getTransactionByHash, eth_getBlockReceipts.
Schema (OpenRPC)
The official specification: eth_getTransactionReceipt in ethereum/execution-apis.
Parameter Transaction hash: string
json
{
"pattern": "^0x[0-9a-f]{64}$",
"title": "32 byte hex value",
"type": "string"
}Result: Not Found (null) or Receipt information
json
{
"oneOf": [
{
"title": "Not Found (null)",
"type": "null"
},
{
"additionalProperties": false,
"properties": {
"blobGasPrice": {
"description": "The actual value per gas deducted from the sender's account for blob gas. Only specified for blob transactions as defined by EIP-4844.",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
"title": "blob gas price",
"type": "string"
},
"blobGasUsed": {
"description": "The amount of blob gas used for this specific transaction. Only specified for blob transactions as defined by EIP-4844.",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
"title": "blob gas used",
"type": "string"
},
"blockHash": {
"pattern": "^0x[0-9a-f]{64}$",
"title": "block hash",
"type": "string"
},
"blockNumber": {
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
"title": "block number",
"type": "string"
},
"contractAddress": {
"description": "The contract address created, if the transaction was a contract creation, otherwise null.",
"oneOf": [
{
"pattern": "^0x[0-9a-fA-F]{40}$",
"title": "hex encoded address",
"type": "string"
},
{
"title": "Null",
"type": "null"
}
],
"title": "contract address"
},
"cumulativeGasUsed": {
"description": "The sum of gas used by this transaction and all preceding transactions in the same block.",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
"title": "cumulative gas used",
"type": "string"
},
"effectiveGasPrice": {
"description": "The actual value per gas deducted from the sender's account. Before EIP-1559, this is equal to the transaction's gas price. After, it is equal to baseFeePerGas + min(maxFeePerGas - baseFeePerGas, maxPriorityFeePerGas).",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
"title": "effective gas price",
"type": "string"
},
"from": {
"pattern": "^0x[0-9a-fA-F]{40}$",
"title": "from",
"type": "string"
},
"gasUsed": {
"description": "The amount of gas used for this specific transaction alone.",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
"title": "gas used",
"type": "string"
},
"logs": {
"items": {
"additionalProperties": false,
"properties": {
"address": {
"pattern": "^0x[0-9a-fA-F]{40}$",
"title": "address",
"type": "string"
},
"blockHash": {
"pattern": "^0x[0-9a-f]{64}$",
"title": "block hash",
"type": "string"
},
"blockNumber": {
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
"title": "block number",
"type": "string"
},
"blockTimestamp": {
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
"title": "block timestamp",
"type": "string"
},
"data": {
"pattern": "^0x[0-9a-f]*$",
"title": "data",
"type": "string"
},
"logIndex": {
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
"title": "log index",
"type": "string"
},
"removed": {
"title": "removed",
"type": "boolean"
},
"topics": {
"items": {
"pattern": "^0x[0-9a-f]{64}$",
"title": "32 hex encoded bytes",
"type": "string"
},
"title": "topics",
"type": "array"
},
"transactionHash": {
"pattern": "^0x[0-9a-f]{64}$",
"title": "transaction hash",
"type": "string"
},
"transactionIndex": {
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
"title": "transaction index",
"type": "string"
}
},
"required": [
"transactionHash"
],
"title": "log",
"type": "object"
},
"title": "logs",
"type": "array"
},
"logsBloom": {
"pattern": "^0x[0-9a-f]{512}$",
"title": "logs bloom",
"type": "string"
},
"root": {
"description": "The post-transaction state root. Only specified for transactions included before the Byzantium upgrade.",
"pattern": "^0x[0-9a-f]{64}$",
"title": "state root",
"type": "string"
},
"status": {
"description": "Either 1 (success) or 0 (failure). Only specified for transactions included after the Byzantium upgrade.",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
"title": "status",
"type": "string"
},
"to": {
"description": "Address of the receiver or null in a contract creation transaction.",
"oneOf": [
{
"title": "Contract Creation (null)",
"type": "null"
},
{
"pattern": "^0x[0-9a-fA-F]{40}$",
"title": "Recipient Address",
"type": "string"
}
],
"title": "to"
},
"transactionHash": {
"pattern": "^0x[0-9a-f]{64}$",
"title": "transaction hash",
"type": "string"
},
"transactionIndex": {
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
"title": "transaction index",
"type": "string"
},
"type": {
"pattern": "^0x([0-9a-fA-F]?){1,2}$",
"title": "type",
"type": "string"
}
},
"required": [
"blockHash",
"blockNumber",
"from",
"cumulativeGasUsed",
"gasUsed",
"logs",
"logsBloom",
"transactionHash",
"transactionIndex",
"effectiveGasPrice"
],
"title": "Receipt information",
"type": "object"
}
]
}