Skip to main content
POST
/
eth_getBlockReceipts
curl --request POST \
  --url https://monad-testnet.core.chainstack.com/9c5b265f20b3ea5df4f54f70eb74b800/ \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_getBlockReceipts",
  "params": [
    "latest"
  ]
}'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": [
    {}
  ]
}
Monad API method that returns all transaction receipts for a given block. This method is more efficient than calling eth_getTransactionReceipt for each transaction individually when you need all receipts from a block.
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

  • quantity|tag — the block number as a hexadecimal string, or one of the following block tags:
    • latest — the most recent block in the canonical chain
    • earliest — the genesis block
    • pending — the pending state/transactions

Response

  • result — an array of transaction receipt objects, each containing:
    • transactionHash — hash of the transaction
    • transactionIndex — index position of the transaction
    • 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 in the block up to this transaction
    • gasUsed — gas used by this transaction
    • contractAddress — contract address created, if any
    • logs — array of log objects generated by this transaction
    • logsBloom — bloom filter for the logs
    • status1 (success) or 0 (failure)

eth_getBlockReceipts code examples

const { ethers } = require("ethers");

const provider = new ethers.JsonRpcProvider("CHAINSTACK_NODE_URL");

async function getBlockReceipts() {
  const blockNumber = "latest"; // Or use hex like "0x1234"
  const receipts = await provider.send("eth_getBlockReceipts", [blockNumber]);
  console.log(`Found ${receipts.length} receipts`);
  receipts.forEach((receipt, i) => {
    console.log(`Transaction ${i}: ${receipt.transactionHash}, Gas used: ${parseInt(receipt.gasUsed, 16)}`);
  });
}

getBlockReceipts();

Use case

A practical use case for eth_getBlockReceipts is building analytics tools that need to process all transaction outcomes in a block, such as calculating total gas usage, counting successful vs. failed transactions, or extracting all events emitted in a block.

Body

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

Response

200 - application/json

Array of transaction receipts.

jsonrpc
string
id
integer
result
object[]