curl --request POST \
--url https://monad-testnet.core.chainstack.com/9c5b265f20b3ea5df4f54f70eb74b800/ \
--header 'Content-Type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getTransactionReceipt",
"params": [
"0xffc7cdc354942338ee028ab1c54ef395b908d6e062ef57821e2869ef37945221"
]
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": {}
}curl --request POST \
--url https://monad-testnet.core.chainstack.com/9c5b265f20b3ea5df4f54f70eb74b800/ \
--header 'Content-Type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getTransactionReceipt",
"params": [
"0xffc7cdc354942338ee028ab1c54ef395b908d6e062ef57821e2869ef37945221"
]
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": {}
}data — the 32-byte hash of the transaction.result — the transaction receipt object, or null when no receipt was found:
transactionHash — hash of the transactiontransactionIndex — integer of the transaction’s index positionblockHash — hash of the block containing this transactionblockNumber — number of the block containing this transactionfrom — address of the senderto — address of the receivercumulativeGasUsed — total gas used when this transaction was executedgasUsed — gas used by this specific transactioncontractAddress — address of the created contract (if any)logs — array of log objectslogsBloom — bloom filter for light clientsstatus — 1 (success) or 0 (failure)eth_getTransactionReceipt code examplesconst { ethers } = require("ethers");
const provider = new ethers.JsonRpcProvider("CHAINSTACK_NODE_URL");
async function getReceipt() {
const txHash = "0xffc7cdc354942338ee028ab1c54ef395b908d6e062ef57821e2869ef37945221";
const receipt = await provider.getTransactionReceipt(txHash);
console.log(receipt);
}
getReceipt();
eth_getTransactionReceipt is verifying transaction success and extracting event logs emitted during execution.Was this page helpful?