Skip to main content
POST
/
eth_getTransactionReceipt
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": {}
}
Monad API method that returns the receipt of a transaction by transaction hash. Transaction receipts contain information about the execution of a transaction, including gas used, logs emitted, and status.
Get you own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • data — the 32-byte hash of the transaction.

Response

  • result — the transaction receipt object, or null when no receipt was found:
    • transactionHash — hash of the transaction
    • transactionIndex — integer of the transaction’s index position
    • blockHash — hash of the block containing this transaction
    • blockNumber — number of the block containing this transaction
    • from — address of the sender
    • to — address of the receiver
    • cumulativeGasUsed — total gas used when this transaction was executed
    • gasUsed — gas used by this specific transaction
    • contractAddress — address of the created contract (if any)
    • logs — array of log objects
    • logsBloom — bloom filter for light clients
    • status1 (success) or 0 (failure)

eth_getTransactionReceipt code examples

const { 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();

Use case

A practical use case for eth_getTransactionReceipt is verifying transaction success and extracting event logs emitted during execution.

Body

application/json
id
integer
default:1
jsonrpc
string
default:2.0
method
string
default:eth_getTransactionReceipt
params
string[]

Response

200 - application/json

The transaction receipt.

jsonrpc
string
id
integer
result
object | null