Returns all transaction receipts for a given block.
eth_getBlockReceipts
JSON-RPC method returns all transaction receipts for a given block. This method is highly efficient for retrieving receipt data for all transactions in a block with a single API call, making it ideal for block processing, event extraction, and comprehensive transaction analysis.
blockNumber
(string, required) — Block identifier: "latest"
, "earliest"
, "pending"
, or a specific block number in hexadecimalnull
if the block doesn’t existtransactionHash
— Hash of the transactiontransactionIndex
— Index of the transaction in the block (0-based)blockHash
— Hash of the block containing the transactionblockNumber
— Number of the block containing the transactionfrom
— Address of the transaction senderto
— Address of the transaction receiver (null for contract creation)gasUsed
— Amount of gas used by this specific transactioncumulativeGasUsed
— Total gas used in the block up to and including this transactioncontractAddress
— Address of the created contract (null if not a contract creation)logs
— Array of log objects generated by the transactionstatus
— Transaction status (0x0
for failure, 0x1
for success)effectiveGasPrice
— Actual gas price paid by the transactiontype
— Transaction type (0x0 for legacy, 0x1 for EIP-2930, 0x2 for EIP-1559)eth_getTransactionReceipt
calls0x1
— Transaction succeeded0x0
— Transaction failed (reverted)gasUsed
— Gas consumed by individual transactioncumulativeGasUsed
— Total gas used up to this transaction in the blocketh_getBlockReceipts
method is essential for applications that need to:
Successful response with all transaction receipts for the block
The response is of type object
.