simulate_transaction
Dry-run any native, ERC20, or contract transaction to get success status, gas estimate, and decoded revert reason.
Instructions
Dry-run a transaction (native/erc20/contract) WITHOUT broadcasting. Returns success/revert, gas estimate, and a decoded revert reason when it would fail.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Recipient (native/erc20) or contract address (contract). | |
| abi | No | ABI fragments for contract calls. | |
| args | No | Args for contract calls. | |
| kind | Yes | Which kind of transaction to simulate. | |
| token | No | Token address for erc20 transfers. | |
| value | No | Native value for contract calls. | |
| amount | No | Amount for native/erc20 transfers. | |
| method | No | Method name for contract calls. | |
| network | No | Target network. One of: ethereum, base, arbitrum, optimism, polygon, sepolia, base-sepolia, arbitrum-sepolia, optimism-sepolia, polygon-amoy. Defaults to the server's configured default network. |