{"uid":"cap_tubHZetuJAfOPyyapyaAO","slug":"delx-base-contract-code-423f2a2f","name":"Delx Base Contract Code","description":"Check if a Base address is a contract and return bytecode size for $0.001 USDC via eth_getCode. Call when you need this bounded result without an API key or subscription. Returns machine-readable JSON via x402 on Base or Solana. Limitation: results cover only the supplied input or one bounded public endpoint at request time; callers must verify before acting.","url":"https://api.delx.ai/api/v1/x402/base-code","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"address":{"type":"string"}}},"responseSchema":{"type":"json","example":{"result":{},"tool_name":"get_base_code"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_OQe8QadZAYUcmsO7dURbH","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks whether a Base network address is a smart contract and returns its bytecode size via eth_getCode.","exampleAgentPrompt":"Can you check if the Base address 0x1234abcd... is a smart contract and tell me the bytecode size?","exampleUseCases":[{"title":"Verify contract before DeFi interaction","prompt":"Before I interact with this Base address 0xabc123..., can you check whether it's actually a deployed smart contract or just a regular wallet?"},{"title":"Audit unknown address in transaction","prompt":"I just received a transaction from 0xdeadbeef... on Base — can you tell me if that's a contract address and how large its bytecode is?"},{"title":"Screen addresses in token distribution","prompt":"I'm about to send tokens to 0x5678efgh... on Base — check if it's a smart contract so I know whether it might be a proxy or vault."}],"resultDescription":"Returns whether the given Base address has deployed contract bytecode, the size of that bytecode in bytes, and the raw bytecode or a summary, effectively confirming EOA vs. contract status via eth_getCode.","failureModes":["Invalid or malformed Base address returns an error","Address exists but has no code (EOA) — returns zero bytecode size","Network or RPC connectivity issues returning a timeout","Payment failure if USDC balance is insufficient for the $0.001 fee","Non-Base chain addresses may return incorrect or empty results"],"whenToPreferThis":"Use this endpoint when you need a fast, paid, agent-ready single-call lookup to determine if a Base L2 address is a smart contract, especially when you want to avoid managing your own RPC node or handling eth_getCode directly. Prefer this over raw RPC calls when building autonomous agents that need on-chain address classification with minimal infrastructure setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:56.119Z","isFirstParty":false}