{"uid":"cap_dsXSiynMbR10aj3hpfb4Q","slug":"contract-introspection-base-ethereum-3039201b","name":"Contract Introspection - Base & Ethereum","description":"Pay-per-call x402 APIs for AI agents: OpenAI-compatible LLM chat, perp funding and arbitrage spreads, crypto prices, gas, FX, Solana SPL mint audit, token price by contract, x402 delivery-receipt verification, web search, clean page extraction, batch tools and deterministic code-security scanning. USDC on Base or Solana, no signup, no API key, from $0.0001 a call.","url":"https://scanpay-edge.alextaghiashvili.workers.dev/api/v1/contract-info?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"},"network":{"enum":["base","ethereum"],"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"name":"USD Coin","symbol":"USDC","address":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"base","product":"scanpay.contract_info","chain_id":"eip155:8453","decimals":6,"is_proxy":false,"price_usd":0.003,"is_contract":true,"bytecode_size":1852,"implementation":null}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bo4CT9puMvHKdCQnXbX-Q","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns bytecode size, EIP-1967 proxy implementation address, and ERC-20 token metadata (name, symbol, decimals) for a smart contract on Base or Ethereum.","exampleAgentPrompt":"Can you look up the contract info for 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base — I want to know the token name, symbol, decimals, bytecode size, and whether it's a proxy contract?","exampleUseCases":[{"title":"Verify ERC-20 token metadata before swap","prompt":"Before I swap into this token at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum, can you pull its on-chain name, symbol, and decimals so I can confirm it's the real USDC and not an impersonator?"},{"title":"Detect proxy pattern in DeFi protocol","prompt":"I need to know if the contract at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base is a proxy — if it is, what's the EIP-1967 implementation address it points to?"},{"title":"Check if address is a deployed contract","prompt":"Is 0x4200000000000000000000000000000000000006 on Base actually a smart contract, and if so how big is its bytecode?"}],"resultDescription":"Returns a JSON object containing the contract address, network, chain ID, ERC-20 name/symbol/decimals (if applicable), bytecode size in bytes, is_contract boolean, is_proxy boolean, EIP-1967 implementation address (or null if not a proxy), and the price paid per call in USD.","failureModes":["Address is an EOA (externally owned account) — is_contract returns false, token fields may be null","Contract does not implement ERC-20 — name/symbol/decimals return null","Unsupported network specified — request fails or returns error","Invalid or malformed contract address — returns an error response","Network congestion or RPC timeout — call may fail or be slow","Contract is a minimal proxy (EIP-1167) rather than EIP-1967 — implementation address may not be detected"],"whenToPreferThis":"Use this endpoint when you need on-chain contract metadata for Base or Ethereum without running your own RPC node — particularly useful for confirming ERC-20 token identity before a swap, detecting proxy upgradeable patterns in DeFi protocols, or verifying that an address is a real contract before interacting with it. Prefer it over generic blockchain explorers when you need a structured JSON response that an AI agent can directly consume, and when you need both proxy detection and token metadata in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-01T06:53:13.652Z","isFirstParty":false,"canonicalSlug":"contract-introspection-base-ethereum-3039201b"}