{"uid":"cap_PyaCYR3D_FiQwVqENasqm","slug":"base-contract-generic-read-auditor-x402-2f74fefb","name":"Base Contract Generic Read (auditor-x402)","description":"Generic read-only call to any contract on Base: provide an address and hex calldata (4-byte selector, e.g. 0x18160ddd = totalSupply, optionally followed by ABI-encoded args) and get the raw return data plus best-effort uint/address/bool/string decoding. Read-only (never sends a transaction). Use this for arbitrary view functions not covered by a dedicated tool.","url":"https://auditor-x402.onrender.com/api/contract-read?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"data":{"type":"string","description":"Hex calldata starting with a 4-byte function selector (e.g. \"0x18160ddd\")"},"address":{"type":"string","description":"Contract address (0x...) on Base"}}},"responseSchema":null,"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_HqEwG7z_KY0kCnPI5IVAt","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":"Executes any read-only (view) function on any Base contract by accepting a contract address and raw hex calldata, returning raw bytes plus best-effort decoded values.","exampleAgentPrompt":"What does the `owner()` function return for the contract at 0xAbCd...1234 on Base? Call it with selector 0x8da5cb5b and decode the result.","exampleUseCases":[{"title":"Check ERC-20 total supply","prompt":"What's the total supply of the token at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base? Use the totalSupply selector 0x18160ddd."},{"title":"Read custom governance parameter","prompt":"I need to read the `quorumVotes()` function (selector 0x24bc1a64) from the governance contract at 0x35d9026F3871C8f9774B6E5bFEa5e00b1e2d8A3 on Base — what does it return?"},{"title":"Inspect NFT ownership on-chain","prompt":"Who owns token ID 42 on the NFT contract at 0x5180db8F5c931aaE63c74a882a88B5D0c3eFA8C on Base? The ownerOf selector is 0x6352211e and the arg is ABI-encoded 42."}],"resultDescription":"Returns the raw hex return data from the contract call, along with best-effort decoded values: uint256, address, bool, and string interpretations of the bytes, so the agent can use whichever type fits the function's actual return type.","failureModes":["Invalid contract address returns an error or empty bytes","Wrong or mismatched calldata selector causes a revert or garbled decode","Contract not deployed on Base returns execution error","Encoding mismatch in ABI arguments causes revert","Service temporarily unavailable (Render cold-start delay)","Payment of 0.003 USDC required; missing payment causes 402 rejection"],"whenToPreferThis":"Choose this endpoint when you need to call any arbitrary view function on a Base contract that is not covered by the dedicated tools (e.g. not ERC-20 balance, not Aave rates, not Uniswap pricing). It is the Swiss-army-knife fallback for any read-only on-chain call — ideal for non-standard getter functions, custom governance contracts, or any function you can express as a 4-byte selector plus ABI-encoded args.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T19:05:15.948Z","isFirstParty":false,"canonicalSlug":"base-contract-generic-read-auditor-x402-2f74fefb"}