check_tx_firewall
Perform a read-only pre-flight security check on an unsigned EVM transaction (to, calldata, network) before signing or broadcasting. Screens 4-byte function selectors against unlimited ERC-20 approve(MAX_UINT256) (0x095ea7b3), NFT setApprovalForAll(true) (0xa22cb465), Permit2 drainer signatures (0xd505accf), UUPS proxy upgrades (0x3659cfe6), and verifies whether the spender is an unverified EOA via eth_getCode. Does not broadcast any transaction. Returns JSON with verdict (ALLOW, WARN, BLOCK), risk_score (0-100), decoded selector, and actionable alerts.
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": "check_tx_firewall"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | 42-character hexadecimal target contract or recipient address (`0x...`) of the unsigned EVM transaction. | |
| network | No | EVM network identifier where the transaction will be executed (`base`, `arbitrum`, `polygon`, `ethereum`, `optimism`, `bsc`). Defaults to `base`. | base |
| calldata | No | Hex-encoded transaction input data starting with `0x` (e.g. `0x095ea7b3...`). Pass `0x` for native value transfers. | 0x |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alerts | No | ||
| verdict | Yes | ||
| risk_score | Yes |