debug_getRawReceipts
The debug_getRawReceipts method returns the RLP-encoded transaction receipts for all transactions in a given block. This method provides the raw encoded receipts which contain important post-execution information including gas used, logs emitted, and transaction status in their binary format.
This method is particularly valuable for analyzing transaction outcomes, event logs, and gas consumption patterns at the binary protocol level. Developers building blockchain indexers, analytics platforms, or custom receipt processing systems can benefit from accessing the raw receipt data without JSON overhead. The receipts contain critical information about transaction execution including success/failure status, cumulative gas used, logs bloom filter, and all event logs emitted during execution.
This method is available only on the full archive node.
Parameters
parameter | type | description |
|---|---|---|
blockNumber | string (required) | Block number in hex format (e.g., '0x10d4f') or one of the string tags: 'latest' for the most recent block, 'earliest' for the genesis block, or 'pending' for pending state/transactions |
Return Object
The method returns an array of RLP-encoded receipt data:
result - array: An array of hexadecimal strings, where each string is an RLP-encoded transaction receipt. Each encoded receipt contains the transaction type, post-transaction state or status code (1 for success, 0 for failure), cumulative gas used in the block, logs bloom filter (256 bytes), and an array of log entries. Each log entry includes the contract address that emitted the log, array of indexed topics, and the data field containing non-indexed log parameters.
Request Example
Response Example