debug_getRawHeader - Bittensor RPC Method
Return raw RLP-encoded header data by block number on Bittensor's EVM layer. Debug method.
Returns the raw RLP-encoded block header for a given block number on Bittensor's EVM-compatible layer. This is a lightweight debug method that provides just the header portion of the block in Ethereum's RLP encoding, without the transaction body. 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"), or "latest", "earliest", "pending". |
Response
| Field | Type | Description |
|---|---|---|
result | string | Hex-encoded RLP-encoded block header data. |
Code Examples
Use Cases
- Header verification -- Inspect the raw RLP-encoded header to verify encoding correctness or debug header-related issues.
- Light client development -- Obtain raw headers for building or testing EVM-compatible light client implementations.
- Tooling development -- Test RLP header decoders against real Bittensor EVM header data.
Notes
- This is an EVM debug method provided by the Frontier compatibility layer. It may be disabled on public RPC endpoints.
- The raw data uses RLP encoding (Ethereum format), not SCALE encoding (Substrate format).
- For the decoded header, use
eth_getBlockByNumberwith the second parameter set tofalse. - May require
--rpc-methods unsafeor Frontier debug flags enabled.
Related Methods
debug_getRawBlock-- Get raw RLP-encoded full block datadebug_getRawTransaction-- Get raw RLP-encoded transaction datadebug_getBadBlocks-- List bad blockseth_getBlockByNumber-- Get a decoded EVM blockchain_getHeader-- Get a Substrate-native block header