simulate_base_transaction
FREE, runs locally against Base Mainnet RPC. Dry-run a transaction before sending it: eth_call + eth_estimateGas at the latest block. Predicts whether it will revert and decodes the reason (Error(string), Panic(uint256) codes, custom-error selector, or node rejection such as insufficient funds). Returns { ok, willRevert, revertReason, estimatedGas, returnData }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target contract or recipient address on Base (0x...). | |
| data | No | Calldata as 0x-hex (default 0x for a plain ETH transfer). | |
| from | No | Optional sender address; needed for balance/allowance-dependent calls. | |
| value | No | ETH value in wei, decimal or 0x-hex (default 0). |