Skip to main content
Tempo API method that returns the receipt of a transaction by transaction hash. Transaction receipts contain information about the execution of a transaction.
Tempo-specific fields: Transaction receipts on Tempo include additional fields:
  • feeToken — the TIP-20 token address used to pay transaction fees
  • feePayer — the address that paid the fees (may differ from sender with fee sponsorship)

Parameters

  • transactionHash — the hash of the transaction to retrieve the receipt for

Response

  • result — a receipt object, or null if no receipt was found:
    • transactionHash — the transaction hash
    • blockHash — hash of the block containing this transaction
    • blockNumber — block number containing this transaction
    • from — address of the sender
    • to — address of the receiver
    • status1 for success, 0 for failure
    • gasUsed — amount of gas used
    • logs — array of log objects
    • feeToken — TIP-20 token address used for fees (Tempo-specific)
    • feePayer — address that paid the fees (Tempo-specific)

eth_getTransactionReceipt code examples

const Web3 = require("web3");
const NODE_URL = "CHAINSTACK_NODE_URL";
const web3 = new Web3(NODE_URL);

async function getReceipt() {
  const receipt = await web3.eth.getTransactionReceipt("0xb3e821e696897b02283b7b2d602941b1d3cb08448d3a204bab05955215fc2035");
  console.log(receipt);
  // Access Tempo-specific fields
  console.log(`Fee token: ${receipt.feeToken}`);
  console.log(`Fee payer: ${receipt.feePayer}`);
}

getReceipt()