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 chainearliest— the genesis blockpending— the pending state/transactions
Response
result— an array of transaction receipt objects, each containing:transactionHash— hash of the transactiontransactionIndex— index position of the transactionblockHash— 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 in the block up to this transactiongasUsed— gas used by this transactioncontractAddress— contract address created, if anylogs— array of log objects generated by this transactionlogsBloom— bloom filter for the logsstatus—1(success) or0(failure)
eth_getBlockReceipts code examples
Use case
A practical use case foreth_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