{"uid":"cap_TR8sl2LJF7eF9OzbiXq3f","slug":"contract-abi-lookup-by-address-and-chain-5d42988e","name":"Contract ABI Lookup by Address and Chain","description":"Verified contract ABI by address and chain, returned as parsed JSON plus function and event name lists, from a block explorer behind an API key. Lets an agent decode and interact with a contract. contract abi, get abi, decode contract, function signatures, smart contract interface","url":"https://api.x402node.dev/contract/abi","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["address"],"properties":{"chain":{"type":"string","description":"ethereum, base, arbitrum, optimism, polygon, bsc (default ethereum)"},"address":{"type":"string","description":"contract 0x..."}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.018","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.018/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.018","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.018","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_szyjDYCfxcHcpv4uu-vdf","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.018","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches and parses the verified ABI for a smart contract by address and chain, returning function signatures, event names, and full decoded JSON ABI.","exampleAgentPrompt":"Can you pull the verified ABI for the Uniswap V3 router contract at 0xE592427A0AEce92De3Edee1F18E0157C05861564 on Ethereum mainnet (chain ID 1)? I need the full function and event list so I can figure out how to call it.","exampleUseCases":null,"resultDescription":"Returns the full verified contract ABI as parsed JSON, along with a list of function names and their signatures (including parameter types) and a list of event names emitted by the contract — everything needed to encode calls or decode logs.","failureModes":["Contract address not verified on the block explorer — returns error or empty ABI","Unsupported chain ID — returns error indicating chain not available","Invalid contract address format — returns validation error","Block explorer API key rate limit hit — returns upstream error","Contract is a proxy and ABI reflects proxy not implementation — may return incomplete interface"],"whenToPreferThis":"Use this endpoint when you need the verified ABI for a specific smart contract to encode function calls, decode transaction data, or inspect available methods and events. Prefer this over manual ABI guessing or generic tools when you have a contract address and need authoritative, parsed ABI data backed by a block explorer.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:47:58.888Z","isFirstParty":false}