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

curl https://rpc.testnet.tryradi.us/<YOUR-RPC-ENDPOINT> \
  -X POST \
  -H "Content-Type: application/json" \
  -d '
{
  "jsonrpc": "2.0",
  "method": "eth_getTransactionReceipt",
  "params": [
    "0x981ae62ff26ae150f69ec3073e551c84cf5209c49c481b3df494ec68931f7960"
  ],
  "id": 1
}
'

Response

{
  "jsonrpc": "2.0",
  "result": {
    "transactionHash": "0x981ae62ff26ae150f69ec3073e551c84cf5209c49c481b3df494ec68931f7960",
    "blockHash": "0x000000000000000000000000000000000003b3e142107d5c6f339a5f024faf15",
    "blockNumber": "0x194afcc18bd",
    "gasUsed": "0x1cba7",
    "effectiveGasPrice": "0x0",
    "blobGasUsed": "0x0",
    "blobGasPrice": "0x0",
    "from": "0xa446c7bf569b10dcd4899d1505427a1229a431be",
    "to": "0x0000000000000000000000000000000000000000",
    "hash": "0x981ae62ff26ae150f69ec3073e551c84cf5209c49c481b3df494ec68931f7960",
    "gasLimit": "0x493e0",
    "value": "0x0",
    "nonce": "0x0",
    "data": "0x6080604052348015600e575f5ffd5b506101298061001c5f395ff3fe6080604052348015600e575f5ffd5b50600436106030575f3560e01c806360fe47b11460345780636d4ce63c14604c575b5f5ffd5b604a60048036038101906046919060a9565b6066565b005b6052606f565b604051605d919060dc565b60405180910390f35b805f8190555050565b5f5f54905090565b5f5ffd5b5f819050919050565b608b81607b565b81146094575f5ffd5b50565b5f8135905060a3816084565b92915050565b5f6020828403121560bb5760ba6077565b5b5f60c6848285016097565b91505092915050565b60d681607b565b82525050565b5f60208201905060ed5f83018460cf565b9291505056fea2646970667358221220c9d450006b906ff115167c8c7bba9154cc401a7b54810387f4dd053155e2b19664736f6c634300081c0033",
    "r": "0x92b2aa5f92eb91535430e4e6063d8b5b85e09f108cb176f6734761e56f461e7c",
    "s": "0x150910a8aa56e4670c2f116b6f189d1dac3d055ce2075c9fbb3d0d7c6e09bb33",
    "v": "0x255a45",
    "root": "0x0000000000000000000000000000000000000000000000000000000000000000",
    "type": "0x0",
    "status": "0x1",
    "cumulativeGasUsed": "0x0",
    "logs": [],
    "transactionIndex": "0x0",
    "contractAddress": "0xae36b7d833960f5dbe49cae6e2a0fb937f0e8d97",
    "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
  },
  "id": 1
}

Last updated

Was this helpful?