{"uid":"cap_8g1DYH4eR1TZ5wBZZ5o9J","slug":"base-onchain-contract-code-safety-scanner-c203bdd6","name":"Base Onchain Contract Code Safety Scanner","description":"Self-computed Base onchain toolkit for AI agents: ERC-20 safety scan, manipulation-resistant TWAP price oracle, gas/fee oracle, calldata decoder, token/address/contract intel, wallet approval-risk audit, and batch token triage — all computed live from raw Base chain, no third-party data.","url":"https://x402-data-api.bodhinindustries.workers.dev/code","method":"GET","headers":{},"bodySchema":{"type":"object","required":["address"],"properties":{"token":{"type":"string","description":"Alias for address (agent ergonomics)."},"address":{"type":"string","description":"Base address to inspect (token alias also accepted)."}}},"responseSchema":{"type":"object","properties":{"address":{"type":"string","description":"address inspected"},"isProxy":{"type":"boolean","description":"proxy detected"},"verdict":{"type":"string","description":"eoa|plain|caution"},"codeHash":{"type":"string","description":"keccak256 of bytecode"},"proxyType":{"type":"string","description":"uups|transparent|beacon|eip1167-minimal|null"},"riskFlags":{"type":"array","items":{"type":"string"}},"computedAt":{"type":"string","description":"ISO-8601 timestamp"},"isContract":{"type":"boolean","description":"has bytecode"},"upgradeable":{"type":"boolean","description":"implementation can change"},"codeSizeBytes":{"type":"integer","description":"deployed code size"},"hasDelegatecall":{"type":"boolean","description":"DELEGATECALL opcode present"},"hasSelfdestruct":{"type":"boolean","description":"SELFDESTRUCT opcode present"},"thirdPartyDataUsed":{"type":"boolean","description":"always false"},"implementationAddress":{"type":"string","description":"resolved implementation (or null)"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_gOO1RhusVnRZGvQwBS0g6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes a Base blockchain address's deployed bytecode to detect proxy patterns, upgrade risks, dangerous opcodes, and contract safety flags — computed live from raw chain data with no third-party dependencies.","exampleAgentPrompt":"Can you scan the Base contract at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 and tell me if it's a proxy, whether it has any dangerous opcodes like SELFDESTRUCT or DELEGATECALL, and what the overall safety verdict is?","exampleUseCases":null,"resultDescription":"Returns a JSON object with the inspected address, whether it's a contract or EOA, proxy type (uups/transparent/beacon/eip1167-minimal), upgradeability status, implementation address if proxied, presence of DELEGATECALL and SELFDESTRUCT opcodes, bytecode keccak256 hash, code size, array of risk flags, a verdict string (eoa/plain/caution), and an ISO-8601 timestamp — all computed directly from Base chain with thirdPartyDataUsed always false.","failureModes":["Invalid or malformed address returns an error response","Address not found on Base returns isContract: false with no bytecode data","Network RPC errors may cause timeouts on congested Base chain","Non-Base chain addresses will return incorrect or empty results since only Base is supported","Unverified or obfuscated proxy patterns may not be detected"],"whenToPreferThis":"Choose this endpoint when you need trustless, first-party smart contract bytecode analysis on Base with no reliance on third-party indexers or off-chain data. Ideal for DeFi agents performing pre-interaction safety checks, wallet risk audits, or token triage where proxy detection, dangerous opcode scanning, and upgradeability verification are critical. Prefer over block explorer APIs when you need raw, manipulation-resistant chain-computed results.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:36:11.939Z","isFirstParty":false}