![](/_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F105223%2F1705703272-purple-arrow-bg.png&w=3840&q=75)
![blur](/_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F105223%2F1705611704-blur.webp&w=3840&q=75)
Empower your users to transact with confidence
![Actionable simulations](/_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F105223%2F1701477414-simulations-icon.png&w=640&q=75)
In 2022, more than $5B was lost in crypto scams. With transparent previews, Transaction Simulation ensures transactions will behave as users expect.
![Save gas](/_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F105223%2F1701477502-gas-icon.png&w=640&q=75)
Simulate a transaction and know if it will revert on chain ahead of time. No more wasting unnecessary gas.
![Control your data](/_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F105223%2F1701477470-data-icon.png&w=640&q=75)
With three products, Asset Changes, Execution Simulation and Bundle Simulation, choose the type of transaction to simulate, and the format and granularity of the preview data.
![Ergonomic access](/_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F105223%2F1701477563-token-gating-icon.png&w=640&q=75)
Simulate any transaction with a single method. Compatible with the Alchemy SDK and available on Ethereum, Polygon, Arbitrum, Optimism and Base.
![Educate your users](/_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F105223%2F1701477448-educate-icon.png&w=640&q=75)
Malicious transactions are predicated on opaque smart contracts that most users don't understand. Users deserve predictability and clear previews, 100% of the time.
![input-output-icon](/_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F105223%2F1701477453-input-output-icon.png&w=640&q=75)
Other simulation methods, e.g., debug_traceCall, have limited functionality with hard-to-parse outputs. Now, simulate complex transactions and get simple results, such as why transactions will fail and revert.
What you can do
![asset-change](/_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F105223%2F1705557903-asset-change.png&w=3840&q=75)
![execution-simulation](/_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F105223%2F1705557879-execution-simulation.png&w=3840&q=75)
![bundle-simulation](/_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F105223%2F1705557852-bundle-simulation.png&w=3840&q=75)
![background gradient](/_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F105223%2F1705610299-blur-background.webp&w=3840&q=75)
"Alchemy handled the heavy lifting for us and saved us hundreds of hours of development time. Transaction Simulation allowed us to go-to-market 4 weeks faster!"
![Kartik Patel headshot](/_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F105223%2F1699424654-katrik-patel.jpeg&w=256&q=75)
Kartik Patel
Former Head of Protocol, OpenSea
Explore more of our developer suite
![Card background image](/_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F105223%2F1705599178-token.jpg&w=1920&q=75)
Token balances and metadata
The token data your users expect, no token list required. Available on all EVM-supported chains.
Code preview
curl --request POST \
--url https://eth-mainnet.g.alchemy.com/v2/docs-demo \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "alchemy_getTokenBalances",
"params": [
"0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5",
"erc20"
]
}
'
![Card background image](/_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F105223%2F1705599137-transfers.jpg&w=1920&q=75)
Portfolio management, simplified
100x faster than others. One request to get all historical transaction activity, including internal transfers.
Code preview
curl --request POST \
--url https://eth-mainnet.g.alchemy.com/v2/docs-demo \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "alchemy_getAssetTransfers",
"params": [
{
"fromBlock": "0x0",
"toBlock": "latest",
"toAddress": "0x5c43B1eD97e52d009611D89b74fA829FE4ac56b1",
"withMetadata": false,
"excludeZeroValue": true,
"maxCount": "0x3e8"
}
]
}
'
![Card background image](/_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F105223%2F1705604779-transact.jpg&w=1920&q=75)
Cheaper, faster, safer transactions
7.9x faster, 100% success rate. Transaction simulation, frontrunning protection, and real-time notifications.
Code preview
curl --request POST \
--url https://eth-mainnet.g.alchemy.com/v2/docs-demo \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"method": "alchemy_sendGasOptimizedTransaction"
}
'
![Section background image](/_next/image?url=https%3A%2F%2Fwww.datocms-assets.com%2F105223%2F1695993053-convertion-panel-bg-dark.jpg&w=3840&q=75)