Alchemy Logo

trace_call

POST
/{apiKey}

Executes a call and returns one or more possible traces.

Path Parameters

apiKeystringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

transactionobjectrequired

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

traceTypesenum[]required

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

blockIdentifierstringoptional

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?