{"uid":"cap_xG7h3xeNe4ombbkOmkPbk","slug":"onesource-ethereum-contract-introspection-7ff57c54","name":"OneSource Ethereum Contract Introspection","description":"Two data families for AI agents: live Ethereum mainnet, Sepolia testnet, and Robinhood Chain RPC reads, plus Deepstate on-chain market data (order books, trades, candles, and analytics). Pay per call or use batch/session mode: USDC on Base via x402, or pathUSD/USDC.e on Tempo via MPP. No API key required to start; a flat-rate monthly subscription is also available.","url":"https://api.onesource.io/api/chain/contract/%7Baddress%7D","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","DELETE"],"type":"string"},"pathParams":{"type":"object","required":["address"],"properties":{"address":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"}}},"queryParams":{"type":"object","properties":{"network":{"enum":["ethereum","sepolia","robinhood"],"type":"string","default":"ethereum"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","properties":{"name":{"type":"string"},"symbol":{"type":"string"},"address":{"type":"string"},"decimals":{"type":"integer"},"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":"integer"},"is_contract":{"type":"boolean"}},"description":"Endpoint-specific response payload"},"meta":{"type":"object","required":["endpoint","request_id"],"properties":{"endpoint":{"type":"string"},"cost_usdc":{"type":"string"},"request_id":{"type":"string"},"payment_chain":{"type":"string"},"payment_token":{"type":"string"}}},"error":{"type":["object","null"],"properties":{"code":{"type":"integer"},"message":{"type":"string"}}}}}}}}},"responseSchema":{"type":"json","example":{"data":{"name":"Tether USD","symbol":"USDT","address":"0xdac17f958d2ee523a2206206994597c13d831ec7","decimals":6,"is_erc20":true,"is_erc165":false,"is_erc721":false,"interfaces":["ERC20"],"is_erc1155":false,"code_length":11075,"is_contract":true},"meta":{"endpoint":"/api/chain/contract/{address}","cost_usdc":"0.001","request_id":"00000000abcdef01","payment_chain":"base","payment_token":"USDC"}}},"example":{"request":{"address":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","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":"45dfac3eaad29bed"}}},"exampleRequest":{"address":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","network":"ethereum"},"tags":["x402"],"displayCostAmount":"0.005","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.005/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_OPlIoJFdBYLmLhajU2VXw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches on-chain contract metadata (name, symbol, decimals, ERC interface support) for a given Ethereum or Sepolia contract address","exampleAgentPrompt":"What's the name, symbol, and decimals for the Ethereum contract at 0xdac17f958d2ee523a2206206994597c13d831ec7, and does it implement ERC20?","exampleUseCases":null,"resultDescription":"Returns a JSON object with the contract's name, symbol, address, decimals, and a list of detected ERC interfaces (e.g. ERC20, ERC721, ERC1155) as introspected from the live Ethereum or Sepolia chain.","failureModes":["Invalid address format (not a valid 0x-prefixed 40-char hex) returns a 400 error","Address is an EOA (externally owned account), not a contract — returns empty or null metadata","Contract does not implement standard name/symbol/decimals methods — partial or empty response","Network unavailable or node sync issues — 503 or timeout","Unsupported network value returns validation error"],"whenToPreferThis":"Use this endpoint when you need to identify what token or contract is deployed at a specific Ethereum address — especially to resolve ERC20 token metadata (name, symbol, decimals) or determine whether a contract is an NFT (ERC721/ERC1155). Prefer it over generic JSON-RPC eth_call when you want structured, pre-parsed contract introspection without writing ABI calls yourself. Works on both Ethereum mainnet and Sepolia testnet without API keys.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:40:45.146Z","isFirstParty":false}