{"uid":"cap_S_WLtK_-omX1S82uadm3N","slug":"abi-selector-map-generator-d752a4f8","name":"ABI Selector Map Generator","description":"Pay-per-call on-chain API for AI agents and developers: wallet audits, token safety audits (honeypot detection), live gas prices, token prices, transaction receipts, balances, ENS resolution, block data, ERC-20 allowances, transaction simulation, swap quotes and multicall batches — all computed on-chain via public RPCs (no external market API). Pay per request in USDC on Base via the x402 exact scheme (EIP-3009 transferWithAuthorization). No API key, no signup, no subscription.","url":"https://x402-audit.tatschluizguilherme.workers.dev/abi","method":"GET","headers":{},"bodySchema":null,"responseSchema":{"type":"json","example":{"count":{"other":0,"errors":0,"events":1,"functions":1},"other":[],"errors":[],"events":[{"name":"Transfer","inputs":[{"name":"from","type":"address","indexed":true},{"name":"to","type":"address","indexed":true},{"name":"value","type":"uint256","indexed":false}],"topic0":"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","verify":{"name":"Transfer","known":true},"anonymous":false,"signature":"Transfer(address,address,uint256)"}],"network":"offline","functions":[{"name":"transfer","inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"verify":{"args":["address","uint256"],"name":"transfer","known":true},"outputs":[],"selector":"0xa9059cbb","signature":"transfer(address,uint256)","stateMutability":"nonpayable"}],"requestedAt":"2026-08-05T10:00:00.000Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_iF00cLZgu8eivfQP_wcMz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a complete selector map from a contract ABI — 4-byte selectors for functions/errors and 32-byte topic0 for events — entirely offline with no RPC or API key required","exampleAgentPrompt":"Take this ERC-20 contract ABI and generate the full selector map for me — I need the 4-byte selectors and canonical signatures for every function, topic0 hashes for every event with their indexed flags, and 4-byte selectors for every error, all computed offline without any RPC call.","exampleUseCases":[{"title":"Smart contract calldata routing table","prompt":"I have the ABI for a Uniswap V3 pool contract — can you generate a complete selector map so I know the 4-byte selector and canonical signature for every function and the topic0 for every event it emits?"},{"title":"Offline event signature fingerprinting","prompt":"Here's the ABI JSON for our NFT contract. I need the 32-byte topic0 hashes for all its events, along with which parameters are indexed and which are anonymous, computed without hitting any RPC endpoint."},{"title":"ABI decode coverage verification","prompt":"Given this DeFi protocol ABI, generate the full selector map and tell me which functions and events your decode dictionary already knows how to decode — I want to see the verify.known round-trip results for everything in the ABI."}],"resultDescription":"Returns a complete selector map object containing: for each function — the 4-byte hex selector, canonical signature string, and typed input/output parameter list; for each event — the 32-byte hex topic0, canonical signature, indexed/anonymous flags per parameter; for each error — the 4-byte hex selector and canonical signature. Also includes a verification object (verify.known) indicating which entries the API's decode dictionary can already decode or encode.","failureModes":["Malformed or invalid ABI JSON returns a parse error","ABI entries missing required fields (type, name, inputs) cause incomplete selector generation","Empty ABI array returns an empty selector map with no entries","Non-standard or experimental ABI entry types may be skipped or flagged","Oversized ABI payloads may hit Cloudflare Worker request size limits","Payment failure (x402) blocks request before processing"],"whenToPreferThis":"Choose this endpoint when you need to compute EVM function selectors, event topic0 hashes, or error selectors from a contract ABI entirely offline — no blockchain node, no Etherscan API key, no network latency. Ideal for tooling pipelines, calldata routers, event decoders, or any workflow that needs a complete selector dictionary from an ABI JSON instantly. Prefer over RPC-based approaches when chain-agnosticism and determinism matter, or when you want to verify decode coverage against a known selector dictionary.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:39:40.561Z","isFirstParty":false}