{"uid":"cap_AJDKi2e3n4PuE67PBepoV","slug":"signgate-swap-preflight-x402-agent-buyer-risk-check-e1aed770","name":"SignGate Swap Preflight — x402 Agent Buyer Risk Check","description":"Machine-payable service intelligence for discovering, verifying, and monitoring identity, risk, authorization, execution-preflight, and evidence APIs before autonomous agents spend.","url":"https://base-agent-preflight.bytoken2023.workers.dev/v1/x402/agent-risk/swap-preflight","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["chain","token_in","token_out"],"properties":{"chain":{"type":"string","pattern":"^[A-Za-z0-9:_ -]{2,80}$"},"token_in":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"token_out":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"amount_usdc":{"type":"string","pattern":"^[0-9]+(?:\\.[0-9]{1,6})?$"},"max_slippage_bps":{"type":"string","pattern":"^[0-9]{1,5}$"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"network":{"type":"string"},"product":{"type":"string"},"activity":{"type":"object"},"identity":{"type":"object"},"assessment":{"type":"object"},"provenance":{"type":"object"}}}}}}},"responseSchema":{"type":"json","example":{"network":"eip155:8453","product":"swap-preflight","assessment":{"flags":[],"risk_level":"low","risk_score":0}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2vOBukPXaNUmIdRkHVBpa","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs a pre-purchase risk and governance check on a token swap before an AI agent spends USDC via the x402 protocol on Base.","exampleAgentPrompt":"Before you swap USDC for token 0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed on Base mainnet with a max slippage of 50 bps, run the SignGate preflight check to make sure the risk level is acceptable.","exampleUseCases":[{"title":"Pre-swap safety gate for autonomous agent","prompt":"Before my trading agent swaps 100 USDC into token 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913 on Base, run the SignGate preflight so I can confirm the risk score is low enough to proceed."},{"title":"Slippage and risk screen before DeFi purchase","prompt":"My agent wants to swap token 0x4200000000000000000000000000000000000006 for 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913 on eip155:8453 with 100 bps max slippage — can you do a preflight risk check and tell me if there are any flags?"},{"title":"Governance approval check before x402 tool purchase","prompt":"Check whether swapping from 0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed to 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913 for 25 USDC on Base passes the buyer governance policy before my agent commits."}],"resultDescription":"Returns a JSON object containing the network identifier, product type ('swap-preflight'), and an assessment block with a numeric risk_score, a categorical risk_level (e.g. 'low', 'medium', 'high'), and a flags array listing any specific governance concerns detected. An empty flags array with risk_level 'low' indicates the swap is cleared for agent execution.","failureModes":["Missing required query parameters (chain, token_in, token_out) results in a 400 Bad Request","Invalid Ethereum address format for token_in or token_out returns a validation error","Unrecognized or unsupported chain identifier returns an error response","Service unavailability on Cloudflare Workers returns a 503","Payment of $0.01 USDC via x402 fails if agent wallet lacks sufficient balance"],"whenToPreferThis":"Use this endpoint when an AI agent is about to execute a token swap on Base via the x402 protocol and you need a lightweight, paid governance signal (risk score + flags) before committing funds. Prefer this over generic on-chain simulation when you specifically need buyer identity and policy alignment checks rather than execution simulation. Best suited for agentic pipelines that enforce a preflight gate before any DeFi spend.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:33:16.186Z","isFirstParty":false}