{"openapi":"3.1.0","info":{"title":"EVM TxFirewall","version":"1.0.0","description":"Pre-sign EVM anti-drainer firewall & EIP-712 Permit/Permit2/Seaport phishing auditor across Base, Ethereum, Arbitrum, Optimism, Polygon, and BSC, sold pay-per-call over x402."},"servers":[{"url":"https://tx-firewall.vercel.app"}],"paths":{"/v1/tx/check":{"post":{"operationId":"checkEvmTransaction","summary":"Pre-sign EVM transaction calldata audit, bytecode scan, and read-only simulation","description":"Is this EVM transaction safe to sign? Pre-sign anti-drainer firewall and read-only simulation across Base, Ethereum, Arbitrum, Optimism, Polygon, and BSC. Decodes ERC-20/Permit2 approvals, NFT setApprovalForAll, recursive multicall, Uniswap V2/V3 & Universal Router SWEEP recipient hijacking, Gnosis Safe DELEGATECALL, EIP-7702 delegations, vanity address poisoning, 3,326+ live OFAC/ScamSniffer/MEW threat feeds, and hazardous bytecode opcodes, then simulates via zero-gas eth_call. Returns SAFE/CAUTION/DANGER, action ALLOW/WARN/BLOCK, 0-100 score, exact wallet exposure, and evidence. Deterministic, no LLM. Not charged if the check fails.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["chain","from","to"],"properties":{"chain":{"type":"string","enum":["base","ethereum","arbitrum","optimism","polygon","bsc"]},"from":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"to":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"data":{"type":"string","default":"0x"},"value":{"type":"string","default":"0"}}},"example":{"chain":"base","from":"0x1519E99078EBaB798ef52326b67E5b28603A20ec","to":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","data":"0x095ea7b3000000000000000000000000dead00000000000000000000000000000000beefffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff","value":"0"}}}},"responses":{"200":{"description":"Deterministic pre-sign transaction risk report","content":{"application/json":{"example":{"ok":true,"kind":"transaction","chain":"base","chainId":8453,"decoded":{"selector":"0x095ea7b3","functionName":"approve","category":"approval","unlimited":true},"assessment":{"verdict":"DANGER","action":"BLOCK","score":10,"summary":"DANGER: Unlimited USDC approval to an EOA wallet.","findings":[]},"simulation":{"executed":true,"reverted":false,"blockNumber":25000000}}}}},"400":{"description":"Invalid input (rejected before payment)"},"402":{"description":"Payment Required ($0.01 USDC on Base via x402)"}}}},"/v1/permit/check":{"post":{"operationId":"checkEip712Permit","summary":"Pre-sign EIP-712 Permit, Permit2, Seaport, SafeTx, and raw eth_sign phishing audit","description":"Is this off-chain EIP-712 signature or Permit a wallet drainer? Pre-sign phishing auditor for ERC-2612 Permit, DAI Permit, Uniswap Permit2 (Single/Batch/TransferFrom), Seaport zero-price & hijacked-proceeds NFT orders, Blur, Gnosis Safe SafeTx (DELEGATECALL + inner calldata), and raw eth_sign blind hashes across Base, Ethereum, Arbitrum, Optimism, Polygon, and BSC. Catches EOA spenders, known OFAC/ScamSniffer/MEW drainers, cross-chain chainId mismatches, spoofed token/Permit2 verifyingContract domains, infinite deadlines, and exact exposed balances. Deterministic, no LLM. Not charged if the check fails.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["base","ethereum","arbitrum","optimism","polygon","bsc"]},"signer":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"typedData":{"type":"object"},"rawMessage":{"type":"string"}}},"example":{"chain":"base","signer":"0x1519E99078EBaB798ef52326b67E5b28603A20ec","typedData":{"domain":{"name":"USD Coin","version":"2","chainId":8453,"verifyingContract":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"},"types":{"Permit":[{"name":"owner","type":"address"},{"name":"spender","type":"address"},{"name":"value","type":"uint256"},{"name":"nonce","type":"uint256"},{"name":"deadline","type":"uint256"}]},"primaryType":"Permit","message":{"owner":"0x1519E99078EBaB798ef52326b67E5b28603A20ec","spender":"0xdead00000000000000000000000000000000beef","value":"115792089237316195423570985008687907853269984665640564039457584007913129639935","nonce":0,"deadline":"115792089237316195423570985008687907853269984665640564039457584007913129639935"}}}}}},"responses":{"200":{"description":"Deterministic off-chain signature phishing report","content":{"application/json":{"example":{"ok":true,"kind":"signature","chain":"base","chainId":8453,"signatureKind":"erc2612_permit","primaryType":"Permit","assessment":{"verdict":"DANGER","action":"BLOCK","score":10,"summary":"DANGER: Off-chain signature grants USDC spending rights to an EOA.","findings":[]}}}}},"400":{"description":"Invalid input (rejected before payment)"},"402":{"description":"Payment Required ($0.01 USDC on Base via x402)"}}}},"/v1/sample":{"get":{"operationId":"getTxFirewallSample","summary":"Free live sample reports demonstrating caught USDC EOA drainer and Permit phishing","responses":{"200":{"description":"Free live sample reports"}}}}}}