{"uid":"cap_RrE-508nvGxzTlxtAKGlk","slug":"abi-function-event-selector-generator-41bcb66d","name":"ABI Function/Event Selector 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/selector","method":"GET","headers":{},"bodySchema":null,"responseSchema":{"type":"json","example":{"kind":"function","name":"transfer","inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"keccak":"0xa9059cbb2ab09eb219583f4a59a5d0623ade346d962bcd4e46b11da047c9049b","verify":{"args":["address","uint256"],"name":"transfer","known":true},"network":"offline","selector":"0xa9059cbb","signature":"transfer(address,uint256)","requestedAt":"2026-08-05T09: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_2Qvi9-XeYlqGOgX987NJ4","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":"Computes the 4-byte function selector or 32-byte event topic0 from a human-readable Solidity signature using Keccak-256, with no RPC or API key required.","exampleAgentPrompt":"What is the 4-byte selector for the Solidity function transfer(address,uint256)? Also verify it against the known decode dictionary.","exampleUseCases":[{"title":"ERC-20 function selector lookup","prompt":"Give me the 4-byte ABI selector for the ERC-20 approve function — the signature is approve(address,uint256) — and confirm it matches the known dictionary."},{"title":"Event topic0 for Transfer event","prompt":"I need the 32-byte topic0 hash for the ERC-20 Transfer event, signature Transfer(address,address,uint256), using kind=event."},{"title":"Selector for complex tuple function","prompt":"Compute the function selector for a Solidity function with a tuple parameter: execute(address,(bytes,address,uint256,uint256),uint256) — I need the 4-byte selector and the full keccak256."}],"resultDescription":"Returns the 4-byte function selector (hex) or 32-byte event topic0 hash, along with the full keccak256 of the canonical signature, parsed input types, and a verification flag indicating whether the selector appears in the known /decode dictionary.","failureModes":["Malformed or invalid function signature returns a parse error","Unsupported parameter syntax (e.g. nested tuples beyond spec) may cause incorrect output","Missing kind field defaults to function selector; forgetting kind=event returns wrong hash length for events","Non-canonical spacing or type aliases (uint vs uint256) may produce selector mismatch"],"whenToPreferThis":"Choose this endpoint when you need to compute Solidity function selectors or event topic0 hashes offline, without any RPC connection, blockchain node, or Etherscan API key. Ideal for agent workflows that need instant, deterministic ABI encoding — especially when building calldata, filtering event logs, or verifying function IDs in a chain-agnostic way.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:35:43.606Z","isFirstParty":false}