Skip to content

trace_rawTransaction ​

served · same as reth

Runs a signed, encoded transaction on the state of a block, with all transaction checks, and returns the trace types that you ask for.

When to use ​

Use it to see what a signed transaction would do before you send it.

Example ​

bash
curl -s -X POST -H 'Content-Type: application/json' \
  --data '{"jsonrpc": "2.0", "id": 1, "method": "trace_rawTransaction", "params": ["0x02f903700183025c3080841570de41830711a4940000000aa232009084bd71a5797d089aa4edfad480b9030409c5eabe000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000002bd0000cca0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000082bedcbe00000000000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000aa059a20000000000000000000003bd97020d20000000000000000016e85b95fa5a26cfdac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000000000000000000000000000000000006c61807b0000000000000000000000000000000000004c00000001000000000000000000000000000000000000004f48fc23fe2786be2c1902335e208300010002000100000000000000000000000000000000000000000000000021bf2c5d72b4785000006602000000000000000000000c87f3e12bad81da0000000000000000000000000000630b000000000000000008e4307e8279bdf903000100000000000000000a6063f737aa97d50000000000000000000003bd97020d20000000000000000007b5699f8da666170001300c00000000000000000c87f3e12bad81da00000000000000000000000082be79b3000000000000000000000000000f4bf200000000000000000000000000000000000073d53553ee552c1f2a9722e6407d43e41e19593f1b7c5f4f9aa7520d81bd369978ebdfa048dbdbbcfcf97840df0e56c6cc80ac2e0e6c451b52c3a28f4a04e693ce080c5512839d3040f801510f0b324f73c59770160e00000000000000000a6067b4ceaca4f50000000000000000000000006c61807b00000000000000000001766c47d3a8330000000000000000000000000aa059a2000173d53553ee552c1f2a9722e6407d43e41e19593f1c3374fd4b8721179b1c3520af71545128b32485a25c651f7892ce84b88eeb3e7e5478a6f9a390bf83742e83dd79598d52e067a6f0cc0ca2a0bea649e2481b0f80000000000000c080a0103be1fd79e3a155b76cdf050414ef4e8fdda93d16b5534eb7dc73d8ba659c62a0204ce7790e5110ecea1a42048ecfdc04ef42f7163b14042d4b8de3e4abc03fc2", ["trace"], "0x18facad"]}' \
  http://127.0.0.1:8547
json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "trace_rawTransaction",
  "params": [
    "0x02f903700183025c3080841570de41830711a4940000000aa232009084bd71a5797d089aa4edfad480b9030409c5eabe000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000002bd0000cca0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000082bedcbe00000000000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000aa059a20000000000000000000003bd97020d20000000000000000016e85b95fa5a26cfdac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000000000000000000000000000000000006c61807b0000000000000000000000000000000000004c00000001000000000000000000000000000000000000004f48fc23fe2786be2c1902335e208300010002000100000000000000000000000000000000000000000000000021bf2c5d72b4785000006602000000000000000000000c87f3e12bad81da0000000000000000000000000000630b000000000000000008e4307e8279bdf903000100000000000000000a6063f737aa97d50000000000000000000003bd97020d20000000000000000007b5699f8da666170001300c00000000000000000c87f3e12bad81da00000000000000000000000082be79b3000000000000000000000000000f4bf200000000000000000000000000000000000073d53553ee552c1f2a9722e6407d43e41e19593f1b7c5f4f9aa7520d81bd369978ebdfa048dbdbbcfcf97840df0e56c6cc80ac2e0e6c451b52c3a28f4a04e693ce080c5512839d3040f801510f0b324f73c59770160e00000000000000000a6067b4ceaca4f50000000000000000000000006c61807b00000000000000000001766c47d3a8330000000000000000000000000aa059a2000173d53553ee552c1f2a9722e6407d43e41e19593f1c3374fd4b8721179b1c3520af71545128b32485a25c651f7892ce84b88eeb3e7e5478a6f9a390bf83742e83dd79598d52e067a6f0cc0ca2a0bea649e2481b0f80000000000000c080a0103be1fd79e3a155b76cdf050414ef4e8fdda93d16b5534eb7dc73d8ba659c62a0204ce7790e5110ecea1a42048ecfdc04ef42f7163b14042d4b8de3e4abc03fc2",
    [
      "trace"
    ],
    "0x18facad"
  ]
}

Response ​

Live mainnet, block 26193069, 2026-10-14. Checked against reth 2.7: equal.

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "error": {
    "code": -32000,
    "message": "nonce too low: next nonce 154673, tx nonce 154672"
  }
}

Full response

Parameters ​

NameTypeRequiredMeaning
transactionhex datayesThe signed transaction, RLP-encoded.
traceTypeslist of strings, see Trace (trace_*)yesAny of trace, vmTrace and stateDiff.
blockblock number in hex, or a tag, see Block parameternoThe block whose state to use. The head or one of the 128 blocks before it. Default: latest.

Returns ​

An object with output, trace, vmTrace and stateDiff. See Trace (trace_*).

Notes and limits ​

  • The node checks the nonce, the balance and the fees as for a real transaction.

Errors ​

CodeMessageWhen
-32000nonce too low: next nonce N, tx nonce MThe account already used this nonce.
-32003insufficient funds for gas * price + value: have X want YThe balance cannot pay for the transaction.
-32602failed to decode signed transactionThe data is not a valid transaction.
-32602invalid transaction signatureThe node cannot recover the sender.

Compared with reth ​

The live example above gives the same answer on Cinder and on reth 2.7.

trace_call, eth_sendRawTransaction.

Schema (OpenRPC) ​

More: trace_rawTransaction.

Parameter data: Bytes
json
{
  "title": "hex encoded bytes",
  "type": "string",
  "pattern": "^0x[0-9a-f]*$"
}
Parameter traceTypes: ParityTraceTypes
json
{
  "title": "Trace types",
  "description": "Which parts of the result to return.",
  "type": "array",
  "items": {
    "type": "string",
    "enum": [
      "trace",
      "stateDiff",
      "vmTrace"
    ]
  }
}
Parameter block: BlockSelector
json
{
  "title": "Block number, tag or block identifier",
  "description": "A block number, a tag, or an object with blockHash or blockNumber. Null means latest.",
  "oneOf": [
    {
      "title": "hex encoded unsigned integer",
      "type": "string",
      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
    },
    {
      "title": "Block tag",
      "type": "string",
      "enum": [
        "earliest",
        "finalized",
        "safe",
        "latest",
        "pending"
      ],
      "description": "latest is the head of the last forkchoice update, as reth. pending is the block that Cinder builds from its transaction pool after latest, as reth. safe and finalized are the blocks of the last forkchoice update, as reth. Before the first update, they name no block. earliest is the first block that the node stored, as reth."
    },
    {
      "type": "object",
      "properties": {
        "blockHash": {
          "title": "32 byte hex value",
          "type": "string",
          "pattern": "^0x[0-9a-f]{64}$"
        },
        "blockNumber": {
          "title": "hex encoded unsigned integer",
          "type": "string",
          "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
        }
      },
      "additionalProperties": false
    },
    {
      "type": "null"
    }
  ]
}
Result: ParityReplay
json
{
  "title": "Parity replay result",
  "description": "The parts that the trace types asked for. A part not asked for is null.",
  "type": "object",
  "properties": {
    "output": {
      "title": "hex encoded bytes",
      "type": "string",
      "pattern": "^0x[0-9a-f]*$"
    },
    "trace": {
      "oneOf": [
        {
          "type": "array",
          "items": {
            "title": "Parity call trace",
            "type": "object",
            "properties": {
              "action": {
                "title": "Parity trace action",
                "type": "object",
                "description": "A call, create or self-destruct action. The fields depend on the type.",
                "properties": {
                  "callType": {
                    "type": "string"
                  },
                  "from": {
                    "title": "hex encoded address",
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]{40}$"
                  },
                  "to": {
                    "title": "hex encoded address",
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]{40}$"
                  },
                  "gas": {
                    "title": "hex encoded unsigned integer",
                    "type": "string",
                    "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                  },
                  "input": {
                    "title": "hex encoded bytes",
                    "type": "string",
                    "pattern": "^0x[0-9a-f]*$"
                  },
                  "value": {
                    "title": "hex encoded unsigned integer",
                    "type": "string",
                    "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                  },
                  "init": {
                    "title": "hex encoded bytes",
                    "type": "string",
                    "pattern": "^0x[0-9a-f]*$"
                  },
                  "address": {
                    "title": "hex encoded address",
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]{40}$"
                  },
                  "balance": {
                    "title": "hex encoded unsigned integer",
                    "type": "string",
                    "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                  },
                  "refundAddress": {
                    "title": "hex encoded address",
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]{40}$"
                  }
                }
              },
              "result": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "gasUsed": {
                        "title": "hex encoded unsigned integer",
                        "type": "string",
                        "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                      },
                      "output": {
                        "title": "hex encoded bytes",
                        "type": "string",
                        "pattern": "^0x[0-9a-f]*$"
                      },
                      "address": {
                        "title": "hex encoded address",
                        "type": "string",
                        "pattern": "^0x[0-9a-fA-F]{40}$"
                      },
                      "code": {
                        "title": "hex encoded bytes",
                        "type": "string",
                        "pattern": "^0x[0-9a-f]*$"
                      }
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "error": {
                "type": "string"
              },
              "subtraces": {
                "type": "integer"
              },
              "traceAddress": {
                "type": "array",
                "items": {
                  "type": "integer"
                }
              },
              "type": {
                "type": "string",
                "enum": [
                  "call",
                  "create",
                  "suicide",
                  "reward"
                ]
              }
            }
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "stateDiff": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "description": "An object that maps an address to the change of its balance, nonce, code and storage."
    },
    "vmTrace": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "null"
        }
      ]
    }
  }
}