EVM Transaction Firewall
ingravity_inspectEvmTransactionFirewallSimulates pre-sign EVM calldata (to, data, optional from and wei value defaulting to '0') across five chains (chainId default 8453 Base) to block drainers before wallet signing. Strictly read-only: decodes ERC-20 approve, NFT setApprovalForAll, EIP-2612/Permit2 signatures, and recursive multicall while reading live RPC bytecode and EIP-1967/1167 slots to return SAFE/WARNING/BLOCK_DRAINER (PROCEED/CAUTION/ABORT) and unsigned revocation calldata. Costs $0.10 USDC on Base via x402 v2 (unpaid returns isError: true); active critical compromises require 0.15% SLA or 5%-10% Safe-Harbor bounty settlement to unmask spender coordinates. Call before signing transactions; use ingravity_scanTokenRugpullAndHoneypot for token due diligence without calldata.
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": "ingravity_inspectEvmTransactionFirewall"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target EVM contract, token, or recipient 42-character hex address (0x...). | |
| data | No | Hexadecimal transaction calldata (0x...); pass '0x' for a plain native ETH transfer. | |
| from | No | Optional sender wallet address (0x...) also matched against active ZK-EC whale exposure dossiers. | |
| value | No | Optional native ETH value in wei as a decimal string. | 0 |
| chainId | No | Target EVM chain ID for live RPC bytecode/EIP-1967 inspection (8453 Base, 42161 Arbitrum, 10 Optimism, 137 Polygon, 1 Ethereum; unknown falls back to 8453). | |
| ticketId | No | Optional ZK-EC blinded exposure ticket ID (TICKET-8453-...) to unseal full remediation coordinates upon x402 rescue settlement. | |
| capitalAtRiskUsd | No | Optional protected capital value in USD for +0.15% Pre-Flight SLA / Safe-Harbor rescue quoting. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Pre-sign action recommendation. | |
| signal | Yes | Traffic-light risk signal. | |
| chainId | Yes | Resolved EVM chain ID used for live RPC inspection. | |
| settled | Yes | Whether x402 USDC payment settled cleanly. | |
| verdict | Yes | Detailed firewall classification. | |
| decision | Yes | Normalized risk decision. | |
| selector | Yes | 4-byte function selector ('0x' for empty calldata, 'INVALID' if malformed hex). | |
| triggers | Yes | Triggered drainer/permission heuristics and RPC checks. | |
| riskScore | Yes | Cumulative risk score from 0 to 100. | |
| decodedAction | Yes | Human-readable decoded calldata action. | |
| decodedParams | No | Decoded ABI arguments (e.g., spender, operator, owner, value, deadline). | |
| agentDirective | Yes | Execution directive explaining how to proceed or revoke. | |
| liveOnChainForensics | No | Live 5-EVM RPC bytecode and EIP-1967 proxy slot inspection (null when unavailable or malformed). | |
| executableRemediationTx | No | Unsigned EIP-5792 wallet_sendCalls and approve(spender, 0) calldata when spender is decoded (or lock notice when masked in pre-flight tier). | |
| savedCapitalEstimateUsd | Yes | Estimated wallet value protected if drainer blocked. |