{"uid":"cap_YBDB6aD0LhtduRD_Aq_yy","slug":"evm-contract-or-wallet-detector-61994893","name":"EVM Contract or Wallet Detector","description":"60 paid endpoints with no metering, no API key and no account. Each endpoint has one flat price per call, whatever the size of the request: LLM completions with automatic failover across several large models, read-only EVM tooling over Base, Ethereum, Polygon, Arbitrum and Optimism, and pure crypto utilities that touch no network.","url":"https://flat-rate-llm.kikoribera03.workers.dev/v1/evm/is-contract","method":"POST","headers":{},"bodySchema":{"type":"object","required":["address"],"properties":{"chain":{"type":"string","description":"base | ethereum | polygon | arbitrum | optimism."},"address":{"type":"string","description":"Address to inspect."}}},"responseSchema":{"type":"object","properties":{"isContract":{"type":"boolean"},"bytecodeBytes":{"type":"number"}}},"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_3jWkeSfSjmCAvi3S-m-T2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Determines whether an Ethereum address is a smart contract or a plain EOA wallet by checking its bytecode size via eth_getCode","exampleAgentPrompt":"Before I send any funds, can you check if 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D on Ethereum mainnet is a smart contract or a plain wallet, and tell me how big its bytecode is?","exampleUseCases":[{"title":"Pre-transfer safety check on unknown address","prompt":"I'm about to send 5 ETH to 0xAbCd1234...5678 — can you first check whether that address is a smart contract or just a regular wallet on Ethereum mainnet so I know it's safe?"},{"title":"Validate recipient is an EOA for airdrop","prompt":"We're doing a token airdrop and I need to confirm that 0x3f5CE5FBFe3E9af3971dD833D26bA9b5C936f0bE is a plain wallet, not a contract — can you verify that on mainnet?"},{"title":"Inspect contract deployment status","prompt":"Can you tell me whether 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 on Ethereum mainnet has any deployed bytecode and how large it is?"}],"resultDescription":"Returns a JSON object with `isContract` (boolean: true if the address has deployed bytecode, false if it is a plain EOA wallet) and `bytecodeBytes` (integer: the size of the deployed bytecode in bytes, 0 for plain wallets).","failureModes":["Invalid or malformed Ethereum address returns an error","Unsupported chain/network identifier results in an error response","Network timeout or RPC node unavailability may cause a failed response","Address with no activity returns isContract: false with bytecodeBytes: 0 (indistinguishable from a fresh wallet)","Self-destructed contracts may return bytecodeBytes: 0 even though they once had code"],"whenToPreferThis":"Choose this endpoint when you need a cheap, fast, read-only check to distinguish smart contract addresses from externally owned accounts (EOAs) on EVM-compatible chains before executing fund transfers, airdrops, or integrations. It is ideal as a pre-flight safety check in agentic workflows where sending funds to a contract vs. a wallet has different consequences. Prefer it over a full eth_call or transaction simulation when you only need to know whether code exists at an address and how large it is.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:48:26.652Z","isFirstParty":false}