eth_getTransactionReceipt
Returns the receipt of a transaction by transaction hash. Note that the receipt is not available for pending transactions.
REQUEST
HEADERS
REQUEST PARAMS
TRANSACTION HASH
[required] - a string representing the hash (32 bytes) of a transaction
EXAMPLE
RESPONSE
RESULT FIELDS
TRANSACTION RECEIPT
- A transaction receipt object, or null when no receipt was found:blockHash
: 32 Bytes - hash of the block including this transaction.blockNumber
: block number including this transaction.contractAddress
: 20 Bytes - the contract address created, if the transaction was a contract creation, otherwisenull
.cumulativeGasUsed
: the total amount of gas used when this transaction was executed in the block.effectiveGasPrice
: the actual value per gas deducted from the sender's account. Before EIP-1559, equal to the gas price.from
: 20 Bytes - address of the sender.gasUsed
: the amount of gas used by this specific transaction alone.logs
: Array - Array of log objects, which this transaction generated.logsBloom
: 256 Bytes - Bloom filter for light clients to quickly retrieve related logs.One of the following:
root
: 32 bytes of post-transaction stateroot (pre Byzantium)status
: either 1 (success) or 0 (failure)
to
: 20 Bytes - address of the receiver.null
when the transaction is a contract creation transaction.transactionHash
: 32 Bytes - hash of the transaction.transactionIndex
: hexadecimal of the transaction's index position in the block.type
: the transaction type.
BODY
Last updated