debug_getRawBlock

The debug_getRawBlock method returns the RLP-encoded block data for a given block number. This method retrieves the raw, encoded representation of a complete block as it exists on the blockchain, including all transactions and block metadata in their binary format.

This method is particularly useful for low-level blockchain analysis, data verification, and understanding the exact binary format of blockchain data structures. Developers working on blockchain explorers, validators, or custom data processing tools can use this to access the raw block data without JSON parsing overhead. The RLP encoding preserves the exact structure and format of blocks as they're stored and transmitted across the Ethereum network.

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 a single field:

result - string: The RLP-encoded block data as a hexadecimal string. This encoded data contains the complete block structure including the block header (parent hash, state root, transactions root, receipts root, logs bloom, difficulty, number, gas limit, gas used, timestamp, extra data, mix hash, and nonce) and the array of all transactions in their encoded form.

Request Example
Request
Response Example
Response

Share on
Share on FacebookShare on XShare on LinkedIn
Did you find this page useful?