{"uid":"cap_DiJrtYhtzsqPPXP86EBFX","slug":"agentpay-token-safety-check-4c8bc5e2","name":"AgentPay Token Safety Check","description":"Pay-per-call AI services via the 402 Payment Required protocol. No accounts, no API keys — just USDC on Base.","url":"https://agentpay.help/v1/token-safety","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"chain":{"type":"string","description":"Chain name or id, default base"},"address":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","description":"ERC-20 contract address"}}},"responseSchema":{"type":"json","example":{"safe":true,"flags":[],"honeypot":false,"risk_score":8,"liquidity_usd":4120000}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HRMaVPqbhEuUmYUkabjUl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes a cryptocurrency token for safety, returning a risk score and flags indicating potential dangers or malicious characteristics.","exampleAgentPrompt":"Before I swap into this token, can you check if it's safe? The contract address is 0x6b175474e89094c44da98b954eedeac495271d0f on Base — I want to see the risk score and any flags.","exampleUseCases":[{"title":"Rug pull detection before DeFi swap","prompt":"I'm about to swap some ETH into this new token at 0xabc123...def456 — can you run a safety check on it first and tell me the risk score and any red flags?"},{"title":"Token vetting for a trading bot","prompt":"My trading bot just found a potential arbitrage opportunity with token 0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9. Check if it's safe to trade before executing — I need the risk score and any warning flags."},{"title":"Portfolio audit for suspicious holdings","prompt":"I received some unknown tokens in my wallet — can you check if 0xd533a949740bb3306d119cc777fa900ba034cd52 is flagged as malicious or a honeypot?"}],"resultDescription":"Returns a JSON object with three fields: 'safe' (boolean indicating whether the token passed safety checks), 'flags' (array of strings describing specific risk factors such as honeypot, rug pull mechanics, blacklist functions, or ownership issues), and 'risk_score' (a numeric score representing overall risk level, likely 0–1 or 0–100).","failureModes":["Invalid or malformed token address returns an error response","Token not found on supported chain returns empty or error result","Network timeout or service unavailability during analysis","Unsupported blockchain network for the given token address","Payment failure via x402 protocol results in 402 response with no analysis"],"whenToPreferThis":"Choose this endpoint when an AI agent needs a fast, pay-per-call token safety assessment without managing API keys or subscriptions. Ideal for DeFi bots, trading agents, or wallet assistants that need to vet tokens on-the-fly before executing swaps or approvals. Prefer this over on-chain static analysis tools when you need a pre-aggregated risk score with human-readable flags in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:48:02.220Z","isFirstParty":false}