{"uid":"cap_D1x2xXzSvbUI9d5nBNeUn","slug":"api-x402node-dev-f1317a2f","name":"x402node Token Safety Check","description":"Token safety check before buying or interacting: given an ERC20 contract on Base, returns risk_score 0-100 and verdict. Scans bytecode for dangerous functions (mint, blacklist, pausable transfers, adjustable fees), checks ownership renounced vs active, ERC20 interface completeness, and supply concentration. Red flags surface honeypot/rug indicators. For AI trading agent pre-transaction due diligence, automated token vetting, rug-pull avoidance.","url":"https://api.x402node.dev/wallet/token-safety","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":["token"],"properties":{"token":{"type":"string","description":"ERC20 contract address (required)"},"toAddress":{"type":"string","description":"ToAddress (optional)"},"fromAddress":{"type":"string","description":"FromAddress (optional)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":{"request":{"chain":"base","token":"0x4200000000000000000000000000000000000006"},"response":{"meta":{"note":"Heuristic. Bytecode scan is best-effort; honeypot/tax detection requires swap simulation (not included). Not financial advice.","chain":"base","method":"bytecode_selector_scan + erc20_reads + transfer_concentration","source":"x402node.dev","version":"v0.1"},"_hint":"x402 paid endpoints for AI agents — x402node.dev (utilities) · cn402.com (Chinese culture)","token":"0x4200000000000000000000000000000000000006","verdict":"likely_safe","metadata":{"name":"Wrapped Ether","symbol":"WETH","decimals":18,"is_erc20":true,"total_supply":287599.7747289233},"ownership":{"owner":null,"status":"no_owner_function"},"red_flags":[],"timestamp":"2026-06-19T05:26:43.730Z","risk_score":0,"is_contract":true,"known_label":"WETH (Base)","concentration":{"recent_transfers":500,"top_recipient_pct":33,"unique_recipients":133},"dangerous_functions":[]}},"exampleRequest":{"chain":"base","token":"0x4200000000000000000000000000000000000006"},"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_XWiOMlF1jE3fpWCAWq_MC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes an ERC20 token contract on Base for rug-pull and honeypot risks, returning a 0-100 risk score and verdict","exampleAgentPrompt":"Before I buy this token, can you run a safety check on the ERC20 contract at 0x4200000000000000000000000000000000000006 on Base and tell me the risk score and whether it's safe — specifically if it has mint functions, a blacklist, or if ownership is still active?","exampleUseCases":null,"resultDescription":"Returns a risk_score between 0 and 100 and a verdict (safe/risky/dangerous), along with flags for dangerous bytecode patterns such as mint, blacklist, pausable transfers, and adjustable fees, plus ownership renouncement status and supply concentration metrics.","failureModes":["Invalid or non-existent contract address returns an error","Contract not deployed on Base mainnet causes lookup failure","Non-ERC20 contract address may return incomplete analysis","Network timeout from RPC provider","Payment failure if USDC balance insufficient for $0.10 fee"],"whenToPreferThis":"Use this endpoint when an AI trading agent or DeFi automation needs pre-transaction due diligence on an unknown ERC20 token on Base L2. Prefer this over generic contract explorers when you need a structured risk score and specific rug-pull indicators (honeypot patterns, mint authority, blacklist functions) without building your own bytecode scanner.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:08:05.811Z","isFirstParty":false}