chain_simulate
Transaction simulator (dry-run any contract call) — Dry-run a transaction before signing it: eth_call + eth_estimateGas + code check on Base, Ethereum, Arbitrum, Optimism or Polygon. Returns SUCCESS/REVERT, the decoded revert reason (Error(string), Panic codes, ~100 common OpenZeppelin/Uniswap/Permit2/ERC-4337/Safe custom errors) with a plain-English fix, return words, gas estimate and fee. Params: chain, to, data (0x calldata); optional from, value (wei) or value_eth, block, errors=Name(type);Other(type) for extra custom errors. Read-only, nothing is sent. Price: $0.003 USDC (Base, via x402).
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": {
"chain": "<chain>",
"to": "<to>",
"data": "<data>"
},
"name": "chain_simulate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 | |
| data | Yes | 0xa9059cbb000000000000000000000000000000000000000000000000000000000000dead00000000000000000000000000000000000000000000000000000000000f4240 | |
| chain | Yes | base |