{"uid":"cap_-c9dD3740JsMMqyUHBqZ8","slug":"base-address-bytecode-inspector-48815083","name":"Base Address Bytecode Inspector","description":"Call when an agent needs bytecode size, is_contract, and a keccak256 hash of the first bytes for one Base address. include_bytecode returns a truncated preview. An empty account is is_contract false. Read-only. No spend. Send JSON {\"address\":\"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\"}. Exact $0.002 USDC on Base. Try unpaid POST /v1/sandbox/base-code first.","url":"https://agentshelf.syntexa.ch/v1/base-code?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"address":{"type":"string","examples":["0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"],"description":"Address on Base mainnet. Example: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913. Returns size, is_contract, and a keccak of the first bytes."},"include_bytecode":{"type":"boolean","description":"When true, include at most 128 bytes of bytecode. Example: false. Default is false. The hash is still returned."}}},"responseSchema":null,"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_aaRklSuAKJpVoe4TqI_7c","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 bytecode size, contract status (is_contract), and a keccak256 hash of the first bytes for a given Base mainnet address, with an optional truncated bytecode preview.","exampleAgentPrompt":"Can you check the Base mainnet address 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 and tell me whether it's a smart contract, what its bytecode size is, and give me the keccak256 hash of its bytecode?","exampleUseCases":[{"title":"Verify token contract before interaction","prompt":"Before my agent interacts with 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base, can you confirm it's actually a deployed smart contract and give me its bytecode size and hash?"},{"title":"Detect EOA vs contract for compliance check","prompt":"I need to know whether the Base address 0x4200000000000000000000000000000000000006 is a smart contract or just a regular wallet — can you check its bytecode status and size?"},{"title":"Fingerprint deployed contract for change detection","prompt":"Can you grab the keccak256 hash of the bytecode at Base address 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD so I can compare it later and detect if the contract was redeployed or upgraded?"}],"resultDescription":"Returns a JSON object with: bytecode size (integer, in bytes), is_contract (boolean, true if the address has deployed code), and a keccak256 hash of the first bytes of the bytecode. If include_bytecode is true, also returns up to 128 bytes of raw bytecode as a preview. Empty accounts (EOAs with no code) return is_contract: false.","failureModes":["Invalid or malformed address returns an error","Address not on Base mainnet (e.g. Ethereum mainnet address) may return empty/EOA result incorrectly interpreted as non-contract","Network timeouts or RPC unavailability may cause request failure","Missing required 'address' field in request body returns a validation error","Payment not included or insufficient USDC triggers 402 Payment Required — use /v1/sandbox/base-code for free testing"],"whenToPreferThis":"Use this endpoint when you need lightweight, read-only on-chain metadata about a Base mainnet address — specifically contract detection, bytecode size, and a keccak256 fingerprint — without running a full Ethereum node or using a heavy RPC provider SDK. Ideal for agents that need a quick contract/EOA check or bytecode integrity fingerprint as part of a larger workflow. The sandbox endpoint (/v1/sandbox/base-code) is available for free testing before committing the $0.002 USDC per-call fee.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-23T06:52:28.032Z","isFirstParty":false,"canonicalSlug":"base-address-bytecode-inspector-48815083"}