# debug_getRawTransaction - Bittensor RPC 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.

## Code Examples

## Request Parameters

- `txHash` (`string, required`): The EVM transaction hash (32-byte hex string with `0x` prefix).

## Request Example

```json
{
  "jsonrpc": "2.0",
  "method": "debug_getRawTransaction",
  "params": [
    "<txHash>"
  ],
  "id": 1
}
```

## Response Fields

- `result` (`string` or `null, required`): Hex-encoded RLP-encoded transaction data, or `null` if the transaction is not found.

## Successful Response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "<value>"
}
```

## 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.

## Related Methods

- [`debug_getRawBlock`](https://www.dwellir.com/docs/bittensor/debug_getRawBlock) -- Get raw RLP-encoded block data
- [`debug_getRawHeader`](https://www.dwellir.com/docs/bittensor/debug_getRawHeader) -- Get raw RLP-encoded header data
- [`debug_getBadBlocks`](https://www.dwellir.com/docs/bittensor/debug_getBadBlocks) -- List bad blocks
- [`eth_getTransactionByHash`](https://www.dwellir.com/docs/bittensor/eth_getTransactionByHash) -- Get a decoded EVM transaction
- [`eth_getTransactionReceipt`](https://www.dwellir.com/docs/bittensor/eth_getTransactionReceipt) -- Get the transaction receipt
