{"uid":"cap_SKOTl0C0e1pTUO0hZCtVo","slug":"evm-contract-introspection-optimism-37ccb24e","name":"EVM Contract Introspection (Optimism)","description":"EVM Contract Introspection (optimism). Optimism contract introspection: contract vs wallet (incl. EIP-7702 delegation), bytecode size, proxy detection (EIP-1967 and legacy OpenZeppelin slots) and ERC-20 name, symbol, decimals, total supply.","url":"https://saylorinnovations.com/api/evm/optimism/contract/:address?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_VQDoOW2ws_2AmdFKu39bd","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieves on-chain contract data for a given address on the Optimism EVM network","exampleAgentPrompt":"Can you pull the on-chain contract details for the address 0x4200000000000000000000000000000000000006 on the Optimism network?","exampleUseCases":[{"title":"Verify deployed contract on Optimism","prompt":"I need to check if the address 0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45 is actually a deployed contract on Optimism and see what its bytecode or ABI looks like."},{"title":"Audit token contract before trading","prompt":"Before I interact with this DeFi protocol, can you pull the contract info for 0x7F5c764cBc14f9669B88837ca1490cCa17c31607 on Optimism so I can verify what I'm dealing with?"},{"title":"Monitor contract metadata for dApp","prompt":"I'm building a dashboard — can you fetch the contract introspection data for 0x1F98431c8aD98523631AE4a59f267346ea31F984 on Optimism so I can display its details to my users?"}],"resultDescription":"Returns on-chain contract introspection data for the specified Optimism address, which may include bytecode, contract type indicators, deployment metadata, ABI fragments, or other EVM-level contract details available from the Optimism network node.","failureModes":["Invalid or malformed contract address returns an error","Address is an EOA (externally owned account), not a contract — may return empty bytecode","Contract not deployed on Optimism (wrong network) — returns null or empty result","Network connectivity issues to Optimism RPC node — timeout or 503 error","Rate limiting or payment failure — 402 or 429 response"],"whenToPreferThis":"Use this endpoint when you specifically need contract introspection data from the Optimism (OP Mainnet) L2 network. Prefer this over generic Ethereum mainnet endpoints when working with Optimism-native or bridged contracts. Choose this over the sibling Arbitrum endpoint when the contract is deployed on Optimism. Useful for agents that need to verify, audit, or display contract-level on-chain data without running their own Optimism node.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T03:54:15.812Z","isFirstParty":false,"canonicalSlug":"evm-contract-introspection-optimism-37ccb24e"}