Skip to content
Alchemy Logo

Simulate transactions before sending

Discover Alchemy's powerful Transaction Simulation APIs that provide in-depth insights into the impact of transactions on various networks before execution.

Transaction simulation helps you understand the exact impact of a transaction before it is executed onchain. With Alchemy's Simulation APIs, you can preview asset transfers, emitted logs, and internal calls before sending a transaction. This increases confidence in transaction integrity and helps you catch issues early.

Alchemy's Transaction Simulation supports multiple networks, including Ethereum (Mainnet and Goerli), Polygon (Mainnet and Mumbai), Arbitrum (Mainnet and Goerli) and Optimism (Mainnet and Goerli).

Please note that the results provided by our transaction simulation APIs are based on the blockchain's state at the moment of simulation. Changes in the blockchain state, such as updates to contract variables or balances, can occur between the time of simulation and when you actually execute your transaction.

This could lead to different outcomes than predicted. For instance, if a transaction's effect is conditional on the current state of a contract, and this state is altered before the transaction is executed, the final result may not match the simulation.

Please be aware of this potential variance and consider it while using the APIs.

In this section, we cover various tutorials related to Transaction Simulation. The tutorials provide in-depth explanations and step-by-step guides to help you master the powerful Simulation APIs offered by Alchemy.

The following articles are listed under this section:

By following these tutorials, you can leverage the strong Simulation APIs offered by Alchemy to gain detailed insights into transaction outcomes, manage risks, and ensure seamless interactions with the blockchain.

Was this page helpful?