# Ethereum eth_getTransactionReceipt RPC method

Ethereum API method that returns a receipt object given a transaction hash.


  • hash — the hash of a transaction.


  • object — the transaction response object , or null if no transaction is found:
    • transactionHash — the hash of the transaction.
    • transactionIndex — the integer of the transactions index position in the block, encoded as hexadecimal.
    • from — the address of the sender.
    • to — the address of the receiver. null when it's a contract creation transaction.
    • blockHash — the hash of the block where this transaction was in.
    • blockNumber — the block number where this transaction was added, encoded as hexadecimal.
    • cumulativeGasUsed — the total gas used when this transaction was executed in the block.
    • gasUsed — the amount of gas used by this specific transaction.
    • contractAddress — the contract address created during the contract creation, otherwise null.
    • logs — the array of log objects that this transaction generated.
    • logsBloom — the bloom filter for light clients to quickly retrieve related logs.
    • value — the value transferred in Wei, encoded as hexadecimal.
    • v — the ECDSA recovery ID, encoded as hexadecimal.
    • r — the ECDSA signature r.
    • s — the ECDSA signature s.

It also returns either:

  • root — 32 bytes of post-transaction stateroot (pre-Byzantium).
  • status — either 1 (success) or 0 (failure), encoded as hexadecimal.


  • web3.js
  • web3.py
  • eth.rb
  • cURL
const Web3 = require("web3");
const node_url = "CHAINSTACK_NODE_URL";
const web3 = new Web3(node_url);
web3.eth.getTransactionReceipt("0xa43e601a9b6c2daefab83c5e3521ba7764e31481079ca356ad8949f9daf0259f", (err, receipt) => {