alchemy_simulateAssetChanges

Simulates a transaction and returns a list of asset changes.

Path parameters

apiKeystringRequired

Request

This endpoint expects an object.
transactionobjectRequired
Object describing the transaction to simulate.

Response

The asset changes resulting from the transaction simulation.
changeslist of objects
gasUsedstring or null
The amount of gas used for the simulation
errorstring or null
Error message if the transaction would revert, null otherwise