{"uid":"cap_ssq-REc6MGUL8RmbVxRD3","slug":"p0-agent-economy-index-evm-contract-code-lookup-20563c21","name":"P0 Agent Economy Index – EVM Contract Code Lookup","description":"An open index of the machine-to-machine (agent) economy. x402 routes: ranked discovery over the live x402 service market, every indexed service scored by real 30-day calls and paying-wallet bounds, with a receipt naming the snapshot hash and scoring revision. /economy routes, for Tempo MPP, Virtuals ACP, Olas, Masumi, ERC-8004 agent registries, Solana agent registries, Base agent contracts and MCP servers (Official MCP Registry): each protocol's published figures (agent or server counts, transactions or payment events; payers and USD volume only where the source publishes them: payers for x402 and Tempo MPP, USD volume for x402 and Virtuals ACP), each with its unit, window and source; units differ, so totals are not summed. L402 and per-service MPP listings are not covered.","url":"https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/evm/code?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD"],"type":"string"},"queryParams":{"type":"object","required":["address"],"properties":{"chain":{"enum":["ethereum","base","arbitrum","polygon","optimism"],"type":"string","default":"base","description":"Chain; default base"},"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"0x address (40 hex)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["chain","chainId","block","as_of","errors","note","address","is_contract","code_bytes"],"properties":{"note":{"type":"string","description":"Fixed text: read from a public node, no USD prices"},"as_of":{"type":"string","description":"ISO 8601 UTC time of the reply"},"block":{"type":["integer","null"],"description":"Latest block at the node when it answered"},"chain":{"enum":["ethereum","base","arbitrum","polygon","optimism"],"type":"string","description":"Chain key"},"errors":{"type":"array","items":{"type":"string"},"description":"Calls or fields the node did not return"},"source":{"type":["string","null"],"description":"Public node host that answered"},"address":{"type":"string"},"chainId":{"type":"integer","description":"EVM chain id"},"code_bytes":{"type":"integer"},"code_sha256":{"type":["string","null"],"description":"sha256 of the bytecode; null for an EOA"},"is_contract":{"type":"boolean"},"eip7702_delegate":{"type":["string","null"],"description":"EIP-7702: address this account delegates to (code 0xef0100+address); then is_contract is false; else null"},"eip1967_implementation":{"type":["string","null"],"description":"Implementation from the EIP-1967 slot, or null"}}}}}}},"responseSchema":{"type":"json","example":{"note":"Read directly from a public node at the block shown; nothing is cached, estimated or priced in USD. A field the node did not return is null and named in errors.","as_of":"2026-10-19T12:00:00.000Z","block":52207800,"chain":"base","errors":[],"source":"base.drpc.org","address":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","chainId":8453,"code_bytes":1852,"code_sha256":"9b2f1c0e5d4a3b2c1d0e9f8a7b6c5d4e3f2a1b0c9d8e7f6a5b4c3d2e1f0a9b8c","is_contract":true,"eip7702_delegate":null,"eip1967_implementation":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_90mCe-SGe4oExzaNGFpTb","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 on-chain bytecode, contract status, and EIP-1967 proxy implementation for any EVM address on supported chains","exampleAgentPrompt":"Is the address 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913 a smart contract on Base, and if it's a proxy, what implementation does it point to?","exampleUseCases":[{"title":"Verify proxy implementation on Base","prompt":"For the contract at 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913 on Base, tell me whether it's an EIP-1967 proxy and what implementation address it delegates to."},{"title":"Confirm EOA vs contract before payment","prompt":"Before I send funds, can you check if 0x1234567890abcdef1234567890abcdef12345678 on Ethereum is a smart contract or just a regular wallet?"},{"title":"Audit contract bytecode hash on Arbitrum","prompt":"Fetch the sha256 hash of the deployed bytecode for 0xabcdefabcdefabcdefabcdefabcdefabcdefabcd on Arbitrum so I can compare it against our expected build artifact."}],"resultDescription":"Returns a JSON object with: chain name and chain ID, latest block number at time of query, ISO 8601 timestamp, the queried address, whether it is a contract (is_contract boolean), bytecode size in bytes (code_bytes), sha256 hash of bytecode (null for EOAs), EIP-1967 implementation slot address if present, the public node hostname that answered (source), and a list of any fields the node failed to return (errors). No caching, no USD pricing.","failureModes":["Invalid address format (not a 40-hex 0x address) returns validation error","Unsupported chain value returns enum error","Public node unavailable or rate-limited: affected fields appear as null and named in errors array","EOA address returns is_contract=false, code_bytes=0, code_sha256=null","No EIP-1967 slot found: eip1967_implementation=null"],"whenToPreferThis":"Use this endpoint when you need a direct, uncached, real-time read of on-chain contract code metadata for EVM addresses across Ethereum, Base, Arbitrum, Polygon, or Optimism — especially to distinguish contracts from EOAs, audit deployed bytecode, or resolve EIP-1967 proxy implementations. Prefer this over block explorer APIs when you need a receipt-grade snapshot with an explicit block number and source node, or when operating in the x402 micropayment ecosystem.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:36:47.991Z","isFirstParty":false,"canonicalSlug":"p0-agent-economy-index-evm-contract-code-lookup-20563c21"}