{"uid":"cap_FReuuYVIStNOqRpzsf7PP","slug":"evm-chain-read-is-contract-check-x402-749712cb","name":"EVM Chain Read – Is-Contract Check (x402)","description":"Pay-per-call EVM reads on Base (8453) and Robinhood Chain (4663): native balance, block tip, ERC-20 meta/balance/allowance, is-contract. Public RPCs, no API key. x402 USDC on Base.","url":"https://chain-read.frcompanycheck.workers.dev/v1/%7Bchain%7D/code/%7Baddress%7D?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"code_bytes":5000,"is_contract":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_LXdTjVhVKQti6-oyqhWO_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the deployed bytecode size and a boolean indicating whether the given address is a smart contract on Base or Robinhood Chain, paid per-call via x402 USDC.","exampleAgentPrompt":"Can you check whether the address 0xAbC123...def456 on Base (chain 8453) is a smart contract or a regular wallet — tell me the bytecode size too?","exampleUseCases":[{"title":"Validate token contract before swap","prompt":"Before I swap into this token, can you verify that 0xdAC17F958D2ee523a2206206994597C13D831ec7 on Base is actually a deployed contract and not just a wallet address?"},{"title":"Detect contract wallets in airdrop list","prompt":"I have a list of addresses I'm about to airdrop to on Base — can you check if 0x1234567890abcdef1234567890abcdef12345678 is a smart contract so I know whether to expect a contract wallet or an EOA?"},{"title":"Audit suspicious address on Robinhood Chain","prompt":"Someone sent funds from 0xdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef on Robinhood Chain — can you tell me if that address has any bytecode deployed, i.e. is it a contract?"}],"resultDescription":"A JSON object containing `code_bytes` (integer: length of deployed bytecode at the address) and `is_contract` (boolean: true if bytecode length > 0, meaning a smart contract is deployed there). Returns is_contract: false and code_bytes: 0 for externally owned accounts (EOAs).","failureModes":["Invalid or malformed EVM address returns an error response","Unsupported chain ID (not 8453 or 4663) returns an error","Payment failure or insufficient USDC balance blocks the call with a 402 response","RPC node unavailability may cause timeouts or 503 errors","Freshly deployed contracts may not yet be indexed depending on block finality"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call check to determine whether an address has deployed code on Base or Robinhood Chain — no API key required, costs only $0.002 USDC per call. Prefer it over full-node RPC calls when you lack direct RPC access, or over general-purpose block explorers when you need a programmatic, low-latency boolean result rather than a full explorer page.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T06:36:26.628Z","isFirstParty":false,"canonicalSlug":"evm-chain-read-is-contract-check-x402-749712cb"}