alchemy_simulateExecution
Simulates a single transaction’s execution and returns decoded traces/logs.
Path parameters
apiKey
Request
This endpoint expects an object.
format
Specifies whether to return a ‘NESTED’ or ‘FLAT’ call structure.
Allowed values:
transaction
Transaction object to simulate.
blockTag
The block context to use: ‘latest’, ‘safe’, ‘finalized’, or ‘earliest’.
Allowed values:
Response
The decoded execution traces and logs produced by simulating the transaction.
calls
logs
error
If the transaction would revert, error explains the reason
revertReason
The reason why a transaction would revert. Provides details about potential transaction failure before execution.