Pre-alphaWork in progress
Skip to content

trace_call ​

Simulates a call and returns call traces, state differences, or both.

Erigon reference · All supported methods

Parameters ​

Parameters are positional, in the order below.

ParameterTypeRequiredDescription
transactionTransaction objectYesCall fields such as from, to, data, value, and gas.
traceTypesArray of stringsYestrace, stateDiff, or both.
blockBlock number or tagNoState to execute against; defaults to latest.

Transaction fields ​

FieldMeaning
fromSender address used during execution
toDestination address; omit for contract creation where supported
data or inputEncoded call data or contract creation code; use one field
valueValue transferred in wei, as a hexadecimal quantity
gasGas allowance for the simulation, as a hexadecimal quantity
gasPriceLegacy gas price in wei; use instead of EIP-1559 fee fields
maxFeePerGas, maxPriorityFeePerGasEIP-1559 fee limits in wei, where applicable
accessListAddresses and storage keys supplied for execution

Return value ​

Tracing output in the requested formats. Replay and simulation results include execution output and the requested call traces or state differences; multi-call and whole-block methods return one result per call or transaction.

Example ​

Replace <gateway-url> with your gateway base URL and <service-url> with the chain’s service path, such as service/ethereum.

sh
curl -X POST "<gateway-url>/<service-url>" \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","id":1,"method":"trace_call","params":[{"to":"0x2222222222222222222222222222222222222222","data":"0x"},["trace"],"latest"]}'

Illustrative response; values depend on the selected network and request:

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "output": "0x",
    "stateDiff": null,
    "trace": [],
    "vmTrace": null
  }
}

Direct behavior ​

The gateway selects providers supporting the requested tracing group and format. Unsupported formats are rejected rather than replaced.

Supported output types are trace, stateDiff, or both. vmTrace is not supported. The gateway matches the requested combination automatically.

Historical simulations require archive state. Requests whose execution point is determined by latest follow the reference-block rules.

Limits ​

Simulations allow up to 30 million gas per call. Omitted gas uses that ceiling; an explicit higher allowance is rejected rather than silently reduced. State and block overrides are not included in the supported contract.

Reconstruction, internal splitting, and recovery share the gateway deadline; none gives the request an unlimited fresh budget.

For providers ​

Qualify for the entire applicable tracing group, including required formats and options. Historical combinations are verified separately; recent success alone does not establish historical coverage.

See provider qualification for checks and continued eligibility.

Unstoppable Infrastructure.