{"uid":"cap_AjEPKEpmHT8dNj8O-liyu","slug":"evm-address-contract-vs-eoa-checker-2f2cf09e","name":"EVM Address Contract vs EOA Checker","description":"Is an address a contract or an EOA on Base, Ethereum, Arbitrum, Optimism, Polygon or BNB (default Base)? Returns is_contract, deployed code size in bytes, and the keccak256 code hash (eth_getCode).","url":"https://payai.agentstools.dev/code","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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["address"],"properties":{"address":{"type":"string","description":"Address (0x..)"},"network":{"enum":["base","ethereum","arbitrum","optimism","polygon","bnb"],"type":"string","description":"EVM network to read from (default base)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"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_djoZlLW2lkwGw8BC7aIfR","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":"Checks whether an Ethereum-compatible address is a smart contract or an externally owned account (EOA) on Base, Ethereum, Arbitrum, Optimism, Polygon, or BNB Chain, returning is_contract flag, deployed bytecode size, and keccak256 code hash.","exampleAgentPrompt":"Is 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 a smart contract or a regular wallet on Ethereum? And what's its code size and code hash?","exampleUseCases":null,"resultDescription":"Returns a JSON object with: is_contract (boolean indicating whether the address has deployed bytecode), the size of the deployed code in bytes, and the keccak256 hash of the bytecode (from eth_getCode). EOAs return false with zero bytes.","failureModes":["Invalid address format (not a 0x hex address) returns an error","Unsupported network value returns a validation error","Address not found on the specified network may return is_contract=false with 0 bytes","Network RPC node unavailability may cause a 500 or timeout","Payment not included or insufficient USDC triggers 402 response"],"whenToPreferThis":"Use this endpoint when you need to classify an EVM address as a smart contract or EOA across multiple chains (Base, Ethereum, Arbitrum, Optimism, Polygon, BNB), especially when you need the exact bytecode size or code hash for further analysis. Prefer this over block explorers when you need a programmatic, paid API response with structured output for agent workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:11:58.987Z","isFirstParty":false}