preflight_sim
Simulate a smart-contract transaction to get revert reasons, gas used, balance deltas, and severity-scored findings before executing it.
Instructions
Simulate a transaction against a contract and return revert reason, gas used, balance deltas, and severity-scored findings. mode='quick' costs $0.05 (eth_call); mode='deep' costs $0.25 (anvil local fork with gas, balance_delta_wei, and internal_calls). Paid in USDC on Base mainnet via x402; DEV_MODE=1 skips payment.
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": {
"to": "<to>"
},
"name": "preflight_sim"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| data | No | ||
| mode | No | quick | |
| value_wei | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |