debug_getRawBlock - Bittensor RPC Method
Return raw RLP-encoded block data by block number on Bittensor's EVM layer. Debug method.
Returns the raw RLP-encoded block data for a given block number on Bittensor's EVM-compatible layer. This is a low-level debug method that provides the raw serialized block as it would appear on the wire in Ethereum's RLP encoding. It is part of the debug namespace provided by the Frontier EVM compatibility layer.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
blockNumber | string | Yes | Block number as a hex string (e.g. "0xF4240" for block 1000000), or "latest", "earliest", "pending". |
Response
| Field | Type | Description |
|---|---|---|
result | string | Hex-encoded RLP-encoded block data. |
Code Examples
Use Cases
- Raw block analysis -- Inspect the exact RLP-encoded representation of a block for debugging encoding/decoding issues.
- Tooling development -- Build or test RLP decoders and block parsers against real Bittensor EVM block data.
- Data archival -- Store raw block data in its canonical serialized form.
Notes
- This is an EVM debug method provided by the Frontier compatibility layer. It may be disabled on public RPC endpoints.
- The raw data is RLP-encoded (Ethereum's serialization format), not SCALE-encoded (Substrate's format).
- For Substrate-native block data, use
chain_getBlockinstead. - May require
--rpc-methods unsafeor Frontier debug flags enabled.
Related Methods
debug_getRawHeader-- Get raw RLP-encoded header datadebug_getRawTransaction-- Get raw RLP-encoded transaction datadebug_getBadBlocks-- List bad blocks the node has encounteredeth_getBlockByNumber-- Get a decoded EVM block by numberchain_getBlock-- Get a Substrate-native block