guard_evm_preflight_base
[x402 Paid: $0.02 Base USDC] Simulate a Base Mainnet EVM transaction via fail-closed eth_call and eth_getCode to block unlimited ERC-20 approvals, Permit2/EIP-3009 signature drains, and counterfeit USDC contracts.
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": {
"from": "<from>",
"to": "<to>"
},
"name": "guard_evm_preflight_base"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target contract or recipient 0x EVM address on Base Mainnet. | |
| data | No | 0x-prefixed even-length hex calldata to decode and simulate (default '0x'). | |
| from | Yes | Sender 0x EVM wallet address on Base Mainnet (eip155:8453). | |
| valueWei | No | Native ETH value in decimal wei string (default '0'). | |
| runSimulation | No | Whether to execute live Base Mainnet eth_getCode and eth_call RPC simulation (default true). | |
| maxErc20AmountAtomic | No | Optional non-negative integer string capping maximum allowed ERC-20 token transfer/approval in atomic units. | |
| expectOfficialBaseUsdc | No | When true, denies execution unless `to` matches official Base USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | Yes | ||
| decision | Yes | ||
| findings | Yes | ||
| decodedCall | Yes | ||
| onChainChecks | Yes | ||
| evaluatedAtUtc | Yes | ||
| preflightSha256 | Yes |