{"uid":"cap_SKOTl0C0e1pTUO0hZCtVo","slug":"evm-contract-introspection-optimism-37ccb24e","name":"EVM Contract Introspection (Optimism)","description":"Send an Optimism address, get whether it is a wallet or a contract, proxy detection, bytecode size and ERC-20 name, symbol and supply.","url":"https://saylorinnovations.com/api/evm/optimism/contract/:address?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","pathParams"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"pathParams":{"type":"object","required":["address"],"properties":{"address":{"type":"string","description":"0x address (path)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["chain","address","is_contract"],"properties":{"chain":{"type":"string","description":"Blockchain the data is for"},"proxy":{"type":"object","properties":{"admin":{"type":["null"]},"beacon":{"type":["null"]},"is_proxy":{"type":["boolean"]},"standard":{"type":["string"]},"implementation":{"type":["string"]}},"description":"Proxy pattern detected, if any","additionalProperties":true},"token":{"type":["object","null"],"properties":{"name":{"type":["string"]},"symbol":{"type":["string"]},"decimals":{"type":["integer"]},"total_supply":{"type":["string"]}},"description":"Token the values refer to","additionalProperties":true},"address":{"type":"string","description":"Account or contract address"},"is_contract":{"type":"boolean","description":"True when the address holds contract code"},"bytecode_bytes":{"type":["number","null"],"description":"Size of the contract bytecode in bytes"},"eip7702_delegate":{"type":"null","description":"Delegate contract address when the account uses an EIP-7702 delegation, otherwise null"}},"additionalProperties":true},"description":{"type":"string"}}}}},"responseSchema":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_VQDoOW2ws_2AmdFKu39bd","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":"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-11-17T06:41:17.166Z","isFirstParty":false,"canonicalSlug":"evm-contract-introspection-optimism-37ccb24e"}