eth_getTransactionReceipt
POST/rpc
Returns the receipt of a transaction by transaction hash.
The receipt is not available for pending transactions.
Parameters: DATA
, 32 bytes - Hash of a transaction
params: [
'0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238'
]
Returns:
Object
- A transaction receipt object, ornull
when no receipt is found:
transactionHash
:DATA
, 32 bytes - Hash of the transaction.transactionIndex
:QUANTITY
- Integer of the transactions index position in the block.blockHash
:DATA
, 32 bytes - Hash of the block where this transaction is in.blockNumber
:QUANTITY
- Block number where this transaction is in.cumulativeGasUsed
:QUANTITY
- The total amount of gas used when this transaction is executed in the block.gasUsed
:QUANTITY
- The amount of gas used by this specific transaction alone.contractAddress
:DATA
, 20 bytes - The contract address created, if the transaction was a contract creation, otherwisenull
.logs
:Array
- Array of log objects, which this transaction generated.logsBloom
:DATA
, 256 bytes - Bloom filter for light clients to quickly retrieve related logs.It also returns either of the following:
root
:DATA
32 bytes of post-transaction stateroot (pre Byzantium)status
:QUANTITY
either1
(success) or0
(failure).
Request
Query Parameters
Your API key
- application/json
Body
Default value: 1
Default value: 2.0
Possible values: >= 1
, <= 1
Default value: eth_getTransactionReceipt
Responses
- 200
Successful response
- application/json
- Schema
- Example (from schema)
Schema
{
"jsonrpc": "2.0",
"id": 1,
"result": 0
}