{"uid":"cap_Eye6kAxQBOro5K2nLXeUM","slug":"nightshift-labs-erc-20-token-check-545d41c5","name":"Nightshift Labs ERC-20 Token Check","description":"Base token safety pre-check: name/symbol/decimals/supply, owner and renounce status, proxy implementation, privileged functions found in bytecode (mint, blacklist, pause, fee setters, upgrade) and a heuristic risk level. Call before buying or accepting an unknown token on Base.","url":"https://nightshift-x402.nightshift-labs.workers.dev/v1/base/token-check?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":{"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"ERC-20 token contract on Base"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"chain":"base","flags":["UPGRADEABLE_PROXY","HAS_MINT_FUNCTION","HAS_BLACKLIST","PAUSABLE","ACTIVE_OWNER"],"owner":"0x3abd…","symbol":"USDC","decimals":6,"heuristicRisk":"elevated","proxyImplementation":"0x2ce6…"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_l_skELmB4YGPT2kOb8Fsp","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns security flags, risk heuristics, and metadata for an ERC-20 token contract on the Base blockchain","exampleAgentPrompt":"Can you check the security flags for the token at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Base — I want to know if it's an upgradeable proxy, has a blacklist, or any elevated risk before I swap into it?","exampleUseCases":[{"title":"Pre-swap token safety check","prompt":"Before I swap into this token at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base, can you check if it has any dangerous flags like a mint function, blacklist, or pausable controls?"},{"title":"DeFi portfolio risk audit","prompt":"I'm holding a few Base tokens in my wallet — can you check the risk flags and heuristic score for 0x4200000000000000000000000000000000000006 and tell me if the owner still has admin control or if it's an upgradeable proxy?"},{"title":"New token listing due diligence","prompt":"We're considering listing this token at 0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb on Base in our app — run a token check on it and tell me the symbol, decimals, owner, any security flags, and overall risk level."}],"resultDescription":"Returns a JSON object containing the chain name, token symbol, decimals, owner address, proxy implementation address (if applicable), an array of security flags (e.g. UPGRADEABLE_PROXY, HAS_MINT_FUNCTION, HAS_BLACKLIST, PAUSABLE, ACTIVE_OWNER), and a heuristic risk rating (e.g. 'elevated', 'low').","failureModes":["Invalid or malformed contract address (not matching ^0x[0-9a-fA-F]{40}$) returns a validation error","Address is a valid hex address but not a deployed ERC-20 contract on Base may return empty or error response","Payment not provided or insufficient USDC on Base triggers HTTP 402 payment required","Contract is self-destructed or not on Base mainnet may yield incomplete data","Rate limiting or worker downtime may return 5xx errors"],"whenToPreferThis":"Use this endpoint when an AI agent needs to quickly assess the security posture of an ERC-20 token on the Base network before executing a swap, investment, or integration. It is purpose-built for Base and returns structured, machine-readable security flags ideal for automated decision-making. Prefer this over generic blockchain explorers when you need programmatic risk flags (blacklist, mint function, upgradeability) rather than raw contract source code or transaction history.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-18T00:44:00.255Z","isFirstParty":false,"canonicalSlug":"nightshift-labs-erc-20-token-check-545d41c5"}