{"uid":"cap_3nwqPqfMr1Mhum6BRz9YN","slug":"x402-toolbox-chain-contract-code-lookup-9c1e70c6","name":"x402-toolbox Chain Contract Code Lookup","description":"309 deterministic pay-per-call tools for AI agents over x402 (USDC, Base). No signup, no API key: the payment is the identity.","url":"https://x402-toolbox.shablony-pro.workers.dev/chain/contract-code?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"schema":{"type":"string"}}},"responseSchema":{"type":"json","example":{"ok":true,"paid":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_OSnDma2LIUFC_XH2TxRm9","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":"Fetches the source code or bytecode of a smart contract deployed on a blockchain network by schema/address identifier.","exampleAgentPrompt":"Can you fetch the contract code deployed at the schema address 0xAbCd...1234 on-chain so I can inspect what it does?","exampleUseCases":[{"title":"Audit smart contract source code","prompt":"Pull up the source code for the contract at schema 0x1234abcd...efgh — I want to review what functions it exposes before interacting with it."},{"title":"Verify deployed contract bytecode","prompt":"Fetch the on-chain contract code for schema 0xDeadBeef...9999 so I can verify it matches the expected deployment."},{"title":"Inspect DeFi protocol contract","prompt":"Get the contract code for schema address 0xUniswap...pool so I can understand how this liquidity pool contract is implemented."}],"resultDescription":"Returns a JSON object with ok and paid confirmation flags, plus the retrieved contract code (source or bytecode) for the specified contract schema identifier on the target blockchain network.","failureModes":["Invalid or malformed schema/contract address returns an error response","Contract not found at the given address returns empty or null code field","Network congestion or RPC unavailability may cause timeouts","Payment failure via x402 protocol blocks the call entirely","Unverified contracts may return raw bytecode only, no readable source"],"whenToPreferThis":"Choose this endpoint when you need pay-per-call, no-signup access to on-chain smart contract code using USDC micropayments over x402. Ideal for AI agents that need to inspect, audit, or verify contract source/bytecode without managing API keys, especially on Base or other EVM-compatible chains.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T03:43:39.145Z","isFirstParty":false,"canonicalSlug":"x402-toolbox-chain-contract-code-lookup-9c1e70c6"}