Docs

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

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

Response

FieldTypeDescription
resultstringHex-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_getBlock instead.
  • May require --rpc-methods unsafe or Frontier debug flags enabled.