Docs

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

ParameterTypeRequiredDescription
blockNumberstringYesBlock number as a hex string (e.g. "0xF4240"), or "latest", "earliest", "pending".

Response

FieldTypeDescription
resultstringHex-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_getBlockByNumber with the second parameter set to false.
  • May require --rpc-methods unsafe or Frontier debug flags enabled.