Skip to main content

eth_getTransactionReceipt

POST 

/rpc

Returns the receipt of a transaction by transaction hash.

note

The receipt is not available for pending transactions.

Parameters: DATA, 32 bytes - Hash of a transaction

params: [
'0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238'
]

Returns:

  • Object - A transaction receipt object, or null 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, otherwise null.

  • 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 either 1 (success) or 0 (failure).

Request

Query Parameters

    apikey stringrequired

    Your API key

Body

    id Id

    Default value: 1

    jsonrpc JsonRpc

    Default value: 2.0

    params string[]

    Possible values: >= 1, <= 1

    method string

    Default value: eth_getTransactionReceipt

Responses

Successful response

Schema
    jsonrpc string
    id integer
    result string
Loading...
Was this helpful?
Happy React is loading...