{"uid":"cap_tVGP6KF974Zi95gW-FpMo","slug":"crypto-contract-inspector-x402-bfb36f9b","name":"Crypto Contract Inspector (x402)","description":"Pay-per-call crypto microdata for trading/onchain AI agents via x402 (USDC on Base): Base gas, token risk, balances, multi-venue prices, Hyperliquid book/funding, kimchi premium. No API keys.","url":"https://kr-x402-mvp.kgy5612.workers.dev/api/chain/contract?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":{"chain":{"enum":["base","eth"],"type":"string","description":"base (default) or eth mainnet"},"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","examples":["0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"],"description":"Address to inspect"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"kind":"ERC20","next":["/crypto/token-risk?address=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","/crypto/allowance?owner=&spender="],"safe":null,"chain":"base","flags":["upgradeable_proxy","has_owner","admin_can_change_logic"],"owner":"0x...","proxy":{"type":"ZEPPELINOS_LEGACY","admin":"0x4fc7850364958d97b4d3f5a08f79db2493f8ca44","beacon":null,"is_proxy":true,"implementation":"0x2ce6311ddae708829bc0784c967b7d77d19fd779"},"token":{"name":"USD Coin","symbol":"USDC","decimals":6,"total_supply":4100000000},"address":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","summary":"ERC20 USDC behind ZEPPELINOS_LEGACY proxy, has owner","chain_id":8453,"checked_at":"2026-10-30T03:40:00Z","interfaces":{"erc165":false,"erc721":false,"erc1155":false},"is_contract":true,"native_balance":0,"code_size_bytes":1852,"owner_renounced":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IxSo23Ez5xDSFzbYlAbf1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Inspects an EVM smart contract address on Base or Ethereum mainnet to return contract type, proxy details, token metadata, risk flags, and suggested next actions — paid per-call via x402 USDC micropayment.","exampleAgentPrompt":"What type of contract is 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base — is it an ERC20, a proxy, and are there any admin risk flags I should know about?","exampleUseCases":[{"title":"Token safety check before DeFi trade","prompt":"Before I swap into this token at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base, can you check if the contract is upgradeable, has an owner who can change logic, or has any other risk flags I should worry about?"},{"title":"Identify unknown contract on Ethereum","prompt":"I found this contract address on Ethereum mainnet — 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 — can you tell me what kind of contract it is, what token it represents, and whether ownership has been renounced?"},{"title":"Agentic onchain due diligence pipeline","prompt":"As part of my token vetting workflow, inspect 0x4200000000000000000000000000000000000006 on Base and give me the proxy details, admin address, token symbol, and any flags like has_owner or admin_can_change_logic."}],"resultDescription":"Returns a JSON object with: contract kind (ERC20, etc.), proxy structure (type, admin, implementation, beacon), token metadata (name, symbol, decimals, total_supply), security flags array (e.g. upgradeable_proxy, has_owner, admin_can_change_logic), owner address, native ETH balance, code size in bytes, whether ownership is renounced, supported interfaces (ERC165/721/1155), chain ID, timestamp, and a 'next' array of suggested follow-up endpoint paths for deeper analysis.","failureModes":["Invalid address format (not a 0x 20-byte hex) returns validation error","Address is an EOA (externally owned account), not a contract — is_contract will be false","Unsupported chain value returns enum error","RPC node timeout or rate limit on the underlying chain causes upstream failure","Contract with unusual proxy pattern may not be fully decoded"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to classify and risk-assess an unknown EVM contract address quickly and cheaply without setting up API keys — especially for onchain trading bots, DeFi due-diligence pipelines, or wallet inspection tools. Prefer over block-explorer scraping or full node queries when you need structured JSON with risk flags, proxy decomposition, and next-step suggestions in a single call. Best suited for Base or Ethereum mainnet contract lookups; not for historical transaction analysis or token price data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:42:25.191Z","isFirstParty":false,"canonicalSlug":"crypto-contract-inspector-x402-bfb36f9b"}