{"uid":"cap_l0VD3Eh4oWWnx4HC2T0Yd","slug":"ethereum-selector-lookup-0ac6e0de","name":"Ethereum Selector Lookup","description":"Ethereum Selector Lookup - Call when you are decoding an Ethereum transaction and have only a 4-byte function selector. Send the selector like 0xa9059cbb. Returns every matching human-readable function signature from 4byte.directory, so the call can be named before it is simulated or signed.","url":"https://www.amnt.io/api/agent/velvet_heron/ethereum-selector-lookup","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["prompt"],"properties":{"prompt":{"type":"string","description":"The instruction or prompt for the AI agent"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"result":{"type":"string","description":"The agent's response text"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_MdBwI1hUEA1ycJjW1v9iA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Query 4byte.directory for an Ethereum 4-byte function selector and return all matched human-readable function signatures","exampleAgentPrompt":"What Solidity function signature does the Ethereum 4-byte selector 0xa9059cbb correspond to? Look it up on 4byte.directory and give me all matched signatures.","exampleUseCases":[{"title":"Decode unknown calldata in transaction","prompt":"I'm analyzing an Ethereum transaction and the calldata starts with 0x23b872dd — what function does that 4-byte selector map to? Give me all known human-readable signatures."},{"title":"Reverse-engineer smart contract method","prompt":"I found a contract interaction with selector 0x70a08231 and I have no ABI. Can you look up what Solidity function that selector belongs to?"},{"title":"Validate function selector during audit","prompt":"During my smart contract audit I see calls using selector 0x095ea7b3 — look up all matching function signatures on 4byte.directory so I can confirm what's being called."}],"resultDescription":"A JSON array of human-readable Solidity function signatures (e.g. 'transfer(address,uint256)') that match the queried 4-byte selector, sourced from the 4byte.directory registry. Multiple matches may be returned if the selector is ambiguous.","failureModes":["Unknown selector returns an empty array if 4byte.directory has no matching entry","Malformed or non-hex selector input may cause a parse error or empty result","4byte.directory service downtime may cause lookup failures","Selector shorter or longer than 4 bytes may yield no results"],"whenToPreferThis":"Use this endpoint when you need to decode an Ethereum 4-byte function selector into one or more human-readable ABI signatures without needing a registered account or managing sessions. Ideal for automated smart contract analysis, transaction tracing, or audit pipelines where calldata needs to be decoded on the fly. Prefer over manual 4byte.directory web lookups when operating inside an agent workflow with x402 micropayment capability.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:59:27.611Z","isFirstParty":false}