debug_getRawBlock

The debug_getRawBlock method returns the RLP (Recursive Length Prefix) encoded raw block data for a specified block number or hash. This method provides the complete block in its encoded binary format, useful for low-level blockchain analysis and verification.

This method is essential for blockchain researchers and developers who need to verify block data integrity, perform custom block parsing, analyze the raw blockchain structure, or implement custom blockchain clients. The RLP-encoded format is the exact representation of how the block is stored and transmitted on the Kaia network. This allows for verification of block hashes, custom data extraction, and deep analysis of block structure without relying on the node's JSON serialization.

This method is available only on the full archive node.


Parameters

parameter
type
description
blockParameter
string (required)
Block number in hexadecimal format (e.g., '0x10d4f') or block hash (32-byte hex string with 0x prefix), or one of the string tags: 'latest' for the most recent block, 'earliest' for the genesis block, or 'pending' for pending state
Return Object
field
type
description
result
string
The RLP-encoded block data as a hexadecimal string. This contains the complete block including header, transactions, and uncle blocks in their raw encoded format
Request Example
Request
Response Example
Response

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