alchemy_simulateExecution

Simulates a single transaction’s execution and returns decoded traces/logs.

Path parameters

apiKeystringRequired

Request

This endpoint expects an object.
formatenumRequired
Specifies whether to return a 'NESTED' or 'FLAT' call structure.
Allowed values:
transactionobjectRequired
Transaction object to simulate.
blockTagenumRequired

The block context to use: ‘latest’, ‘safe’, ‘finalized’, or ‘earliest’.

Allowed values:

Response

The decoded execution traces and logs produced by simulating the transaction.
callslist of objects
logslist of objects
errorstring or null
If the transaction would revert, error explains the reason
revertReasonstring or null
The reason why a transaction would revert. Provides details about potential transaction failure before execution.