debug_getRawTransaction RPC Method

Retrieves a transaction in its raw EIP-2718 binary-encoded form.

Parameters#

stringrequired

32-byte transaction hash, hex-encoded.

Result#

string - The raw EIP-2718 binary-encoded transaction as a hex string.

Code sample#

{
  "jsonrpc": "2.0",
  "method": "debug_getRawTransaction",
  "params": [
    "0x0e07d8b53ed3d91314c80e53cf25bcde02084939395845cbb625b029d568135c"
  ],
  "id": 1
}

Response#

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0xf86c0a85..."
}
Try It