Skip to main content
POST
eth_getTransactionReceipt
curl --request POST \
  --url https://rpc.testnet.tempo.xyz/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "2.0",
  "method": "eth_getTransactionReceipt",
  "params": [
    "0xb3e821e696897b02283b7b2d602941b1d3cb08448d3a204bab05955215fc2035"
  ],
  "id": 1
}
'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": {}
}
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()

Body

application/json
jsonrpc
string
default:2.0
method
string
default:eth_getTransactionReceipt
params
any[]

Transaction hash

id
integer
default:1

Response

200 - application/json

The transaction receipt with Tempo-specific fields

jsonrpc
string
id
integer
result
object

Receipt object with feeToken and feePayer fields, or null if not found