Docs

debug_getRawTransaction - Bittensor RPC Method

Return raw RLP-encoded transaction data by hash on Bittensor's EVM layer. Debug method.

Returns the raw RLP-encoded transaction data for a given transaction hash on Bittensor's EVM-compatible layer. This provides the exact bytes of the signed transaction as it was submitted to the network, before any decoding. It is part of the debug namespace provided by the Frontier EVM compatibility layer.

Parameters

ParameterTypeRequiredDescription
txHashstringYesThe EVM transaction hash (32-byte hex string with 0x prefix).

Response

FieldTypeDescription
resultstring or nullHex-encoded RLP-encoded transaction data, or null if the transaction is not found.

Code Examples

Use Cases

  • Transaction debugging -- Inspect the raw signed transaction bytes to debug encoding, signing, or submission issues on Bittensor's EVM layer.
  • Transaction replay -- Obtain the raw transaction to replay it on a test network or local development environment.
  • Signature verification -- Extract the raw transaction for independent signature verification.
  • Tooling development -- Test RLP transaction decoders against real Bittensor EVM transaction 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). The transaction includes nonce, gas price, gas limit, to, value, data, and signature fields.
  • Returns null if the transaction hash is not found or has been pruned.
  • May require --rpc-methods unsafe or Frontier debug flags enabled.