Alchemy Logo

trace_replayTransaction

POST
/{apiKey}

Traces a call to eth_sendRawTransaction without executing it, returning the traces.

Path Parameters

apiKeystringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

transactionHashstringformat: "^0[xX][0-9A-Fa-f]{64}$"required

Transaction hash of the raw transaction to be replayed.

traceTypesenum[]requireddefaults to trace

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

Defaults to ["trace"].

Responses

200

Returns the trace result from replaying the transaction.

Was this page helpful?