debug_traceTransaction

OptimismC3

Replays a transaction and returns a detailed trace using a chosen tracer (callTracer, prestateTracer, or struct/opcode logs). The deepest introspection available; runs on our archive nodes.

Endpoint
POST https://api.1st-node.com/v1/optimism/rpc

Parameters

NameTypeDescription
hashDATA, 32 bytesTransaction hash to trace.
optionsObjectTracer config, e.g. { "tracer": "callTracer" }.

Returns

Object — the tracer output (call tree, prestate, or struct logs).

Request

curl https://api.1st-node.com/v1/optimism/rpc \
  -H "Authorization: Bearer $ONE_KEY" \
  -H "content-type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "debug_traceTransaction",
  "params": ["0x88df…", { "tracer": "callTracer" }]
}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "debug_traceTransaction",
  "params": ["0x88df…", { "tracer": "callTracer" }]
}

Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": { "type": "CALL", "from": "0x…", "to": "0x…", "gasUsed": "0x…", "calls": [] }
}
More trace methods on Optimism

Optimism API

Preguntas frecuentes

Which tracers are supported?

callTracer, prestateTracer and struct/opcode logging are available on archive nodes.

Recarga, obtén tu clave y publica.

Autoservicio. Paga en cripto o con tarjeta. Medido por créditos: las primitivas pesadas cuestan más, las simples son baratas.

Obtener clave API