{"uid":"cap_awnNz6WyK0JmvAxYnnCjS","slug":"preflight-safety-check-18f6b9d3","name":"Preflight Safety Check","description":"Is this action safe? One pre-sign call for agents: simulates the transactions, checks EIP-712 signatures and x402 requests for phishing, screens recipients for sanctions and scams, rug-checks tokens. One proceed/caution/avoid verdict. 11 EVM chains + Solana. $0.008 per check + $0.004 per token you ask it to rug-check (up to 5). Category: security.","url":"https://agentforge-taupe.vercel.app/v1/preflight?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"from":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","description":"Wallet taking the action (required with transactions)"},"chain":{"enum":["ethereum","base","arbitrum","optimism","polygon","bsc","avalanche","linea","unichain","sonic","hyperevm"],"type":"string"},"tokens":{"type":"array","items":{"type":"string"},"maxItems":5,"description":"Tokens about to be bought (rug-checked, priced per token)"},"typedData":{"type":"object","description":"EIP-712 typed data about to be signed"},"recipients":{"type":"array","items":{"type":"string"},"maxItems":20,"description":"Addresses about to receive funds or permissions"},"transactions":{"type":"array","items":{"type":"object","required":["to"],"properties":{"to":{"type":"string"},"data":{"type":"string"},"value":{"type":"string"}}},"maxItems":5},"expectedMaxUsd":{"type":"number"},"paymentRequired":{"type":"object","description":"x402 PaymentRequired about to be paid"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.008","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.008/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_W5Z0mj3ckkqT8EEwNhJwW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.008","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Pre-action security check that simulates transactions, screens recipients for sanctions/scams, validates EIP-712 signatures and x402 requests for phishing, and rug-checks tokens — returning a single proceed/caution/avoid verdict.","exampleAgentPrompt":"Before you sign anything, run a preflight safety check on this Ethereum transaction from 0xABC...123 to 0xDEF...456 — also rug-check the token at 0x789...abc and make sure the recipient isn't sanctioned — give me a proceed, caution, or avoid verdict.","exampleUseCases":[{"title":"DeFi trade safety gate","prompt":"Before my agent swaps into this new token on Base, run a preflight check on the transaction from 0xMYWALLET, rug-check the token contract 0xTOKEN123, and verify the recipient DEX router 0xROUTER isn't flagged — I need a proceed or avoid verdict before it executes."},{"title":"EIP-712 signature phishing check","prompt":"My wallet just got a request to sign some EIP-712 typed data — can you run a preflight safety check on it to see if it's a phishing attempt before I approve anything?"},{"title":"x402 payment pre-authorization screen","prompt":"I'm about to pay an x402 PaymentRequired request from an API I haven't used before — please run a preflight check on the payment object and screen the recipient address for sanctions or scams before I let it go through."}],"resultDescription":"A single safety verdict (proceed / caution / avoid) along with individual signal results covering: transaction simulation outcome, EIP-712 or x402 phishing assessment, sanctions and scam screening for each recipient address, and rug-check risk scores for any tokens submitted (up to 5).","failureModes":["Unsupported chain returns a validation error — only 11 EVM chains + Solana are supported","More than 5 transactions or tokens in the request will be rejected with a schema error","Missing 'from' address when transactions are provided causes a required-field error","Malformed address (non-0x EVM format) fails pattern validation","Payment failure (x402) if USDC balance is insufficient for the $0.008 base fee plus $0.004 per token","Ambiguous or undeployable contract address may return inconclusive simulation result","Network congestion on the target chain may cause simulation timeout"],"whenToPreferThis":"Use this endpoint as a mandatory pre-execution gate any time an AI agent is about to sign a transaction, approve a smart contract, pay an x402 request, or send funds — especially when dealing with unfamiliar tokens, new counterparties, or high-value operations. It bundles sanctions screening, phishing detection, transaction simulation, and rug-checking into one call, making it superior to calling individual security APIs separately. Prefer it over standalone rug-check or sanctions endpoints when you need a holistic go/no-go verdict in a single round-trip before an irreversible on-chain action.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-18T18:35:48.029Z","isFirstParty":false,"canonicalSlug":"preflight-safety-check-18f6b9d3"}