eth_getTransactionReceipt

Returns the receipt of a transaction for a given transaction hash. Note that the receipt is not available for pending transactions—but Radius transactions are settled in milliseconds, so you won't wait long.

Parameters

transaction hash: [Required] A string representing the hash (32 bytes) of a transaction.

Returns

A transaction receipt object, or null when no receipt was found. The transaction receipt object will contain the following keys and their values:

  • 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, otherwise null.

  • cumulativeGasUsed: The total amount of gas used when this transaction was executed in the block.

  • effectiveGasPrice: The actual value per gas (in wei) deducted from the sender's account. Before EIP-1559, equal to the gas price.

  • from: 20 bytes. The address of the sender.

  • gasUsed: The amount of gas used by this specific transaction alone.

  • logs: (Array) An array of log objects generated by this transaction.

  • 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. The address of the receiver. null when the transaction is a contract creation transaction.

  • transactionHash: 32 bytes. The hash of the transaction.

  • transactionIndex: Hexadecimal of the transaction's index position in the block.

  • type: the transaction type.

Example

Request

Response

Last updated

Was this helpful?