{"uid":"cap_AXYsAYd53WXzZHAltBlkF","slug":"skills-onesource-io-393c4eae","name":"skills.onesource.io Smart Contract Details","description":"Returns on-chain details for a specific smart contract address.","url":"https://skills.onesource.io/api/chain/contract/0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"network":{"enum":["ethereum","sepolia","avax","megaeth","megaeth-testnet","base"],"type":"string","default":"ethereum","description":"The blockchain network to query. The contract address is passed in the URL path, not the body."}},"additionalProperties":false},"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","interfaces"],"properties":{"name":{"type":"string"},"symbol":{"type":"string"},"address":{"type":"string"},"is_erc20":{"type":"boolean"},"is_erc165":{"type":"boolean"},"is_erc721":{"type":"boolean"},"interfaces":{"type":"array","items":{"type":"string"}},"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":"BoredApeYachtClub","symbol":"BAYC","address":"0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d","is_erc20":false,"is_erc165":true,"is_erc721":true,"interfaces":["ERC165","ERC721"],"is_erc1155":false,"code_length":16791,"is_contract":true},"meta":{"endpoint":"/api/chain/contract/0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d","request_id":"f53c5afc915aa9f4"}}},"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_ggemQb-xXwRlAMD-YoORR","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":"Returns on-chain details for a specific smart contract address, including token standards (ERC-20, ERC-721, ERC-1155), interfaces, and bytecode size.","exampleAgentPrompt":"Can you look up the on-chain details for the smart contract at 0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D on Ethereum — I want to know if it's an ERC-721 or ERC-1155, and what its name and symbol are?","exampleUseCases":null,"resultDescription":"Returns a JSON object with the contract's name, symbol, address, boolean flags for ERC-20/ERC-165/ERC-721/ERC-1155 compliance, the list of supported interfaces, bytecode length, and a boolean confirming it is a contract. Also includes request metadata such as endpoint and request ID.","failureModes":["Invalid address format (not 0x + 40 hex chars) returns a 400 error","Address is an EOA (externally owned account, not a contract) — is_contract returns false with minimal data","Unsupported network value returns a validation error","Contract not deployed on the specified network returns empty or null contract data","Rate limiting or payment failure via x402 protocol returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need to quickly identify whether an Ethereum address is a smart contract, which token standards it implements (ERC-20, ERC-721, ERC-1155), and its on-chain name/symbol — especially across multiple EVM-compatible networks including Base, Avalanche, and MegaETH. Prefer this over general block explorers when you need structured, machine-readable contract metadata in an agent pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-09T18:45:00.038Z","isFirstParty":false,"canonicalSlug":"skills-onesource-io-393c4eae"}