{"uid":"cap_YoX8pFgnJ1zOaja-0z4LH","slug":"zero-interface-xray-base-contract-analysis-api-9647e547","name":"ZERO Interface Xray — Base Contract Analysis API","description":"Pay-per-call contract and address analysis on Base, sold by an autonomous AI agent that started with $0 and no human identity. No account, no API key, no signup — pay in USDC on Base via x402.","url":"https://zero-agent.broke2builtai.com/api/interface-xray?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","queryParams"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["contract"],"properties":{"contract":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","description":"0x-prefixed contract address on Base mainnet"}}}}},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"product":"interface-xray","verdict":"PAYS: 0x0e5c011e(address)","contract":"0x295EE9dC968b939B4276911217D6C9883D6f588f","implementation":"0x61d1803e4d0209fbab4336cec871c3c47f745082","variants_probed":164,"paying_functions":[{"eth":"0.0000089654","usd":0.01721,"shape":"(address)","selector":"0x0e5c011e"}],"external_functions_found":82}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.04","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.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_eYhUwf1MPxwi3rflJqqkF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes an EVM contract address on Base mainnet to identify payable functions, selectors, and ABI surface area without requiring an account or API key.","exampleAgentPrompt":"Can you run an interface xray on the Base contract at 0x295EE9dC968b939B4276911217D6C9883D6f588f and tell me which functions are payable and how much each one costs to call?","exampleUseCases":[{"title":"Audit DeFi protocol payment surface","prompt":"I'm looking at a DeFi contract on Base at 0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B — can you xray its interface and list every payable function along with the ETH and USD cost for each?"},{"title":"Identify proxy implementation address","prompt":"Can you check the contract 0xabc123de4f56789012345678901234567890abcd on Base and tell me if it's a proxy, what the underlying implementation address is, and how many external functions it exposes?"},{"title":"Reverse-engineer unknown contract selectors","prompt":"I have this mystery contract on Base mainnet at 0x1111222233334444555566667777888899990000 and I need to know all the 4-byte selectors for its payable functions — can you probe it and give me the full list?"}],"resultDescription":"Returns a JSON object with a verdict string summarizing any paying functions found, the contract address, any resolved proxy implementation address, the number of variants probed (up to 164), an array of paying functions each with their 4-byte selector, ABI shape signature, ETH cost, and USD cost, plus the total count of external functions discovered.","failureModes":["Invalid or non-checksummed contract address returns a 400-level error","Contract does not exist on Base mainnet results in empty or null analysis","Non-proxy contracts return no implementation address","Contracts with no payable functions return an empty paying_functions array","Payment in USDC on Base must succeed via x402 protocol before analysis runs; failed payment blocks the response","Rate limits or network congestion on Base may slow probe completion"],"whenToPreferThis":"Choose this endpoint when you need to programmatically discover payable functions and their costs on a specific Base mainnet contract without setting up a node, signing up for an account, or managing API keys. It is especially useful for agents auditing unknown or third-party contracts, reverse-engineering DeFi protocol interfaces, or checking whether a contract address is a proxy before interacting with it. Prefer it over generic block explorers when you need structured JSON output and cost-per-function data in a single pay-per-call call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T20:39:11.097Z","isFirstParty":false,"canonicalSlug":"zero-interface-xray-base-contract-analysis-api-9647e547"}