{"uid":"cap_BhiO_5XuyeEthvXkb1t2j","slug":"skills-onesource-io-09e4f88c","name":"skills.onesource.io On-Chain Contract Details","description":"Fetches on-chain contract details for a given contract address.","url":"https://skills.onesource.io/api/chain/contract/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48","method":"GET","headers":{},"bodySchema":{"type":"object","required":[],"properties":{"network":{"enum":["ethereum","sepolia","avax","megaeth","megaeth-testnet","base"],"type":"string","default":"ethereum","description":"The EVM network to query. The contract address is passed as a URL path parameter, not in the body."}}},"responseSchema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["address","is_contract","code_length","name","symbol","is_erc721","is_erc1155","is_erc20","is_erc165"],"properties":{"name":{"type":"string"},"symbol":{"type":"string"},"address":{"type":"string"},"is_erc20":{"type":"boolean"},"is_erc165":{"type":"boolean"},"is_erc721":{"type":"boolean"},"is_erc1155":{"type":"boolean"},"code_length":{"type":"number"},"is_contract":{"type":"boolean"}}},"meta":{"type":"object","required":["endpoint","request_id"],"properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}},"example":{"request":{"network":"ethereum"},"response":{"data":{"name":"USD Coin","symbol":"USDC","address":"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48","is_erc20":false,"is_erc165":false,"is_erc721":false,"is_erc1155":false,"code_length":2187,"is_contract":true},"meta":{"endpoint":"/api/chain/contract/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48","request_id":"00451b0bd7ae453b"}}},"exampleRequest":{"network":"ethereum"},"tags":["x402"],"displayCostAmount":"0.005000","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.005000/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_tEK0ot8zhMsdDXy99YZiP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches on-chain smart contract metadata and details for a given contract address on supported EVM networks.","exampleAgentPrompt":"Can you pull the on-chain contract details for 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 on Ethereum? I want to see what's deployed there.","exampleUseCases":[{"title":"Verify token contract authenticity","prompt":"I need to check if this address is actually the real USDC contract. Can you pull up the on-chain details for 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 and verify it's deployed on Ethereum?"},{"title":"Inspect smart contract for audit","prompt":"We're doing a security review of a contract someone sent us. Can you fetch the contract details and bytecode for 0x1f9840a85d5af5bf1d1762f925bdaddc4201f984 on Base? I want to see what we're working with."},{"title":"Find deployed contract on testnet","prompt":"I'm deploying my contract and want to verify it went live correctly. Can you pull the on-chain metadata for 0x3a0d526f5287cc915ea6fa1671d5763472a60ce9 on Sepolia and show me the deployment details?"}],"resultDescription":"Returns on-chain details for the specified smart contract address, which may include contract bytecode, ABI, deployment metadata, contract type, and chain-specific information for the requested EVM network.","failureModes":["Invalid address format (not a valid 0x-prefixed 40-hex-char address) returns a validation error","Address is an EOA (externally owned account) with no contract code deployed","Unsupported network name returns an enum validation error","Contract not found on the specified network returns a not-found or empty response","Payment failure (x402 payment not processed) blocks the request"],"whenToPreferThis":"Use this endpoint when you need to inspect or verify what smart contract is deployed at a specific EVM address on Ethereum, Base, Avalanche, Sepolia, MegaETH, or MegaETH-testnet. Prefer this over generic blockchain explorers when you need programmatic, structured on-chain contract data accessible via API with per-call micropayment pricing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:30:24.287Z","isFirstParty":false}