{"uid":"cap_JyKxOxQx8rCnLKKmswqPl","slug":"token-preflight-risk-check-7b4471de","name":"Token Preflight Risk Check","description":"Pay-per-call utilities for AI agents over x402, USDC on Base.","url":"https://agents.crowdspark.me/v1/bundle/token-preflight?utm_source=zero.xyz","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":["address"],"properties":{"from":{"type":"string","description":"Optional holder address for a realistic transfer simulation"},"chain":{"enum":["base","ethereum","optimism","arbitrum","polygon"],"type":"string","description":"Default base"},"address":{"type":"string","description":"Token contract address"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"risk":{"level":"medium","score":30,"reasons":["upgradeable or proxy contract (zeppelinos (legacy unstructured storage))","has an owner address"]},"token":{"chain":"base","symbol":"USDC","decimals":6,"standard":"ERC20"},"transfer_gas":{"fees":[{"tier":"standard","est_cost_usd":0.00065}],"gas_units":"45415"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_NrY-NTjfJaNWwA08D9h2L","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks a token contract on Base/Ethereum/Optimism/Arbitrum/Polygon for structure, risk score, and simulated ERC20 transfer gas cost before swapping, listing, or paying with it.","exampleAgentPrompt":"Before we swap into this token, run a preflight check on contract address 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum — give me the risk score, any proxy or owner flags, and what an ERC20 transfer would cost in gas.","exampleUseCases":[{"title":"Pre-swap token safety check","prompt":"I'm about to swap into 0x4200000000000000000000000000000000000006 on Base — can you check its structural risk score and tell me if it's upgradeable or has an owner before I do anything?"},{"title":"DeFi payment integration vetting","prompt":"We're about to accept 0x7F5c764cBc14f9669B88837ca1490cCa17c31607 on Optimism as a payment token — run a preflight on it and tell me the risk level, ERC20 standard compliance, and estimated gas cost for a transfer."},{"title":"Token listing due diligence","prompt":"Before listing this token on our platform, check contract 0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174 on Polygon and give me the full risk breakdown including any proxy flags and owner address warnings."}],"resultDescription":"Returns a JSON object containing: (1) token metadata — chain, symbol, decimals, and detected standard (e.g. ERC20); (2) risk object — numeric score 0–100, level (low/medium/high), and an array of human-readable reasons explaining the score; (3) transfer_gas — estimated gas units and cost in USD for a simulated ERC20 transfer at standard fee tier.","failureModes":["Invalid or non-existent contract address returns an error or empty result","Unsupported chain value returns a validation error","Rate limit exceeded if free tier (25/day) is exhausted and no payment header is present","RPC node timeout may cause delayed or failed response for some chains","Non-token contract addresses (e.g. EOAs or non-ERC20 contracts) may return null standard or unexpected risk flags"],"whenToPreferThis":"Use this endpoint when an AI agent needs a quick structural safety check on a token contract before executing a swap, payment, or listing — especially when operating autonomously on Base, Ethereum, Optimism, Arbitrum, or Polygon. It provides a scored, human-readable risk summary and gas simulation in a single call, making it ideal for pre-trade or pre-integration due diligence. It is NOT a honeypot detector; prefer dedicated honeypot audit tools if that is the primary concern.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:39:20.015Z","isFirstParty":false,"canonicalSlug":"token-preflight-risk-check-7b4471de"}