debug_traceTransaction

EthereumC3

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/ethereum/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/ethereum/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 Ethereum

Ethereum API

常见问题

Which tracers are supported?

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

充值、拿密钥、上线。

自助开通。支持加密货币或银行卡。按额度计费——重型原语更贵,简单调用很便宜。

获取 API 密钥