Skip to main content

eth_getTransactionReceipt RPC Method

Returns the receipt of a transaction by transaction hash.

Updated on
May 25, 2026
Please note that transaction receipts are not available for pending transactions.
MegaETH nodes use a ~15-day pruning window for receipt data. Receipts older than ~15 days (1,296,064 blocks) are pruned from the database but are also persisted in static files. For more details, see the MegaETH Pruning Policy.

Parameters

hash
string
REQUIRED

The hash of a transaction

Returns

object
object | null

A transaction receipt object, or null when no receipt was found

type
string

The transaction type encoded as a hexadecimal

status
string

It is either 1 (success) or 0 (failure) encoded as a hexadecimal

cumulativeGasUsed
string

The total gas used when this transaction was executed in the block

logs
array

An array of log objects that were generated by this transaction

address
string

The address from which this log originated

topics
array

An array of (0 to 4) 32-byte topics. The first topic is usually the event signature hash

data
string

One or more 32-byte non-indexed arguments of the log encoded as hexadecimal

blockHash
string | null

The hash of the block where this log was in. null when it's a pending log

blockNumber
string | null

The block number where this log was in. null when it's a pending log

transactionHash
string | null

The hash of the transaction this log was created from. null when it's a pending log

transactionIndex
string | null

The transaction index position this log was created from encoded as hexadecimal. null when it's a pending log

logIndex
string | null

The log index position in the block encoded as hexadecimal. null when it's a pending log

removed
boolean

True if the log was removed due to a chain reorganization, false if it's a valid log

depositNonce
string

The deposit nonce encoded as a hexadecimal

depositReceiptVersion
string

The deposit receipt version encoded as a hexadecimal

logsBloom
string

The bloom filter which is used to retrieve related logs

transactionHash
string

The hash of the transaction

transactionIndex
string

The transaction index position in the block encoded as a hexadecimal

blockHash
string

The hash of the block where this transaction was in

blockNumber
string

The block number where this transaction was added encoded as a hexadecimal

gasUsed
string

The amount of gas used by this specific transaction alone

effectiveGasPrice
string

The actual gas price paid by the sender encoded as a hexadecimal

from
string

The address of the sender

to
string | null

The address of the receiver. null when it's a contract creation transaction

contractAddress
string | null

The contract address created for contract creation, otherwise null

l1GasPrice
string

The L1 gas price used for the transaction encoded as a hexadecimal

l1GasUsed
string

The L1 gas used for the transaction encoded as a hexadecimal

l1Fee
string

The L1 fee charged for the transaction encoded as a hexadecimal

l1BaseFeeScalar
string

The L1 base fee scalar encoded as a hexadecimal

l1BlobBaseFee
string

The L1 blob base fee encoded as a hexadecimal

l1BlobBaseFeeScalar
string

The L1 blob base fee scalar encoded as a hexadecimal

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"type": "0x7e",
6
"status": "0x1",
7
"cumulativeGasUsed": "0x18d5c",
8
"logs": [],
9
"depositNonce": "0x6e8c54",
10
"depositReceiptVersion": "0x1",
11
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
12
"transactionHash": "0x6eac46de7abaf4079fae382032f670261d68637a9c5b5c515b66f1c5c302a475",
13
"transactionIndex": "0x0",
14
"blockHash": "0xb851bd3df47af166dd39c7b54d0effe9174f2202e46dac92cae0098abc116517",
15
"blockNumber": "0x6e8c55",
16
"gasUsed": "0x18d5c",
17
"effectiveGasPrice": "0x0",
18
"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",
19
"to": "0x4200000000000000000000000000000000000015",
20
"contractAddress": null,
21
"l1GasPrice": "0x297fe0b4",
22
"l1GasUsed": "0x6f5",
23
"l1Fee": "0x0",
24
"l1BaseFeeScalar": "0x558",
25
"l1BlobBaseFee": "0x8c6083ea1d86a98",
26
"l1BlobBaseFeeScalar": "0x0"
27
}
28
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"type": "0x7e",
6
"status": "0x1",
7
"cumulativeGasUsed": "0x18d5c",
8
"logs": [],
9
"depositNonce": "0x6e8c54",
10
"depositReceiptVersion": "0x1",
11
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
12
"transactionHash": "0x6eac46de7abaf4079fae382032f670261d68637a9c5b5c515b66f1c5c302a475",
13
"transactionIndex": "0x0",
14
"blockHash": "0xb851bd3df47af166dd39c7b54d0effe9174f2202e46dac92cae0098abc116517",
15
"blockNumber": "0x6e8c55",
16
"gasUsed": "0x18d5c",
17
"effectiveGasPrice": "0x0",
18
"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",
19
"to": "0x4200000000000000000000000000000000000015",
20
"contractAddress": null,
21
"l1GasPrice": "0x297fe0b4",
22
"l1GasUsed": "0x6f5",
23
"l1Fee": "0x0",
24
"l1BaseFeeScalar": "0x558",
25
"l1BlobBaseFee": "0x8c6083ea1d86a98",
26
"l1BlobBaseFeeScalar": "0x0"
27
}
28
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free