Skip to content
Alchemy Logo

trace_call

POST
/{apiKey}

Executes a call and returns one or more possible traces.

Path Parameters

stringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

objectrequired

Transaction call object. Contains call parameters such as "from", "to", "gas", "gasPrice", "value", and "data".

enum[]required

Array of trace types to return. Valid values include "trace" and "stateDiff".

stringoptional

Optional block identifier (block number in hex, block hash, or tag like "latest").

Responses

200

Returns the trace result for the given call.

Was this page helpful?