Skip to main content

eth_getTransactionReceipt RPC Method

Returns the receipt of a transaction by transaction hash.

Updated on
Oct 29, 2024

eth_getTransactionReceipt RPC Method

Please note that transaction receipts are not available for pending transactions.

Parameters

hash
string
REQUIRED
The hash of a transaction

Returns

object
A transaction receipt object, or null when no receipt was found
root
The 32 bytes of post-transaction stateroot
cumulativeGasUsed
The total gas used when this transaction was executed in the block
logsBloom
The bloom filter which is used to retrive related logs
logs
An array of log objects that generated this transaction
address
The address from which this log originated
topics
An array of (0 to 4) 32 Bytes DATA of indexed log arguments. (In solidity: The first topic is the hash of the signature of the event (e.g. Deposit(address,bytes32,uint256)), except you declared the event with the anonymous specifier)
data
It contains one or more 32 Bytes non-indexed arguments of the log
blockHash
The hash of the block where this log was in. Null when it's a pending log
blockNumber
The block number where this log was in. null when its pending
l1BatchNumber
The l1 batch number where this log was in. null when its pending
transactionHash
The hash of the transaction from which this log was created from. null if the log is pending
transactionIndex
The integer of the transaction's index position that the log was created from. Null when it's a pending log
logIndex
The integer of the log index position in the block. Null when it's a pending log
transactionLogIndex
The index of the log within the transaction, detailing the order in which events occurred
logType
Describes the type of log
removed
It is true if log was removed, due to a chain reorganization and false if it's a valid log
blockTimestamp
The UNIX timestamp for when the block containing the log was mined
l2ToL1Logs
An array for logs related to L2 to L1 messages
status
It is either 1 (success) or 0 (failure) encoded as a hexadecimal
transactionHash
The hash of the transaction
transactionIndex
The transactions index position in the block encoded as a hexadecimal
l1BatchTxIndex
Index for the transaction within an L1
l1BatchNumber
The batch number associated with the transaction on L1,
blockHash
The hash of the block where this transaction was in
blockNumber
The block number where this transaction was added encoded as a hexadecimal
gasUsed
The amount of gas used by this specific transaction alone
from
The address of the sender
to
The address of the receiver. Null when its a contract creation transaction
contractAddress
The contract address created for contract creation, otherwise null
type
The type of value
effectiveGasPrice
The total base charge plus tip paid for each unit of gas
Request
1
curl https://docs-demo.abstract-testnet.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"method":"eth_getTransactionReceipt","params":["0x067bf6c5b8b6cabf224d0ea5f6d3da948ce9a55b76ee802c6cc3da4dfe0b10a5"],"id":1,"jsonrpc":"2.0"}'
5
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free