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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"kind": "<kind>"
},
"name": "simulate_transaction"
}
}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. |