Skip to main content

eth_getTransactionReceipt

POST 

/

Returns the receipt of a transaction by transaction hash.

Parameters:

  • hash: the hash of a transaction.

Returns:

  • result: a transaction object, or null when no transaction was found.
  • blockHash: the hash of the block where this transaction is in.
  • blockNumber: the block number where this transaction is in.
  • contractAddress: the contract address created, if the transaction was a contract creation, otherwise null.
  • cumulativeGasUsed: the total amount of gas used when this transaction was executed in the block.
  • effectiveGasPrice: the effective gas price of the transaction.
  • from: the address of the sender.
  • gasUsed: the amount of gas used by this specific transaction alone.
  • logsBloom: the bloom filter for light clients to quickly retrieve related logs.
  • status: either 1 (success) or 0 (failure).
  • to: the address of the receiver, or null when it's a contract creation transaction.
  • transactionHash: the hash of the transaction.
  • transactionIndex: the integer of the transactions index position in the block.
  • type: the type of the transaction.
  • logs: an array of log objects, which this transaction generated.

Example:

"params": [
"0xcf1911356099c562421c4ce7bc47707a39866094f9102cb891cf2cb0194d95d1"
]

Request

Query Parameters

    apikey stringrequired

    Your API key

Body

    id integer
    jsonrpc string
    method string
    params string[]

Responses

Successful response

Schema

    jsonrpc string
    id integer
    result string
Loading...