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": {}
}Returns the receipt of a transaction. Tempo receipts include additional fields: feeToken (the TIP-20 token used for fees) and feePayer (the address that paid fees).
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": {}
}feeToken — the TIP-20 token address used to pay transaction feesfeePayer — the address that paid the fees (may differ from sender with fee sponsorship)transactionHash — the hash of the transaction to retrieve the receipt forresult — a receipt object, or null if no receipt was found:
transactionHash — the transaction hashblockHash — hash of the block containing this transactionblockNumber — block number containing this transactionfrom — address of the senderto — address of the receiverstatus — 1 for success, 0 for failuregasUsed — amount of gas usedlogs — array of log objectsfeeToken — TIP-20 token address used for fees (Tempo-specific)feePayer — address that paid the fees (Tempo-specific)eth_getTransactionReceipt code examplesconst 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()
Was this page helpful?