{"uid":"cap_vn4yRqd5Zu0R9h_1bY_zG","slug":"zerion-api-chain-details-lookup-4de77d11","name":"Zerion API - Chain Details Lookup","description":"Interpreted wallet data for more than 40 chains and Solana: portfolios, DeFi positions, PnL, transactions and NFTs. REST for apps, x402 pay-per-call for agents.","url":"https://api.zerion.io/v1/chains/%7Bchain_id%7D?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"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["chain_id"],"properties":{"chain_id":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string","description":"Resource ID."},"type":{"type":"string","description":"Resource type."},"attributes":{"type":"object","description":"Resource attributes; see https://developers.zerion.io"}}},"links":{"type":"object","description":"Self and pagination links."}}}}}}},"responseSchema":{"type":"json","example":{"data":{"id":"<resource id>","type":"<resource type>","attributes":{}},"links":{"self":"https://api.zerion.io/v1/..."}}},"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_Lg0s5ic4-xZMAeaeSc7BN","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 metadata and details for a specific blockchain chain by chain ID from Zerion's multi-chain index","exampleAgentPrompt":"Can you pull up the chain details for Ethereum mainnet from Zerion — I need the chain metadata like its ID and attributes?","exampleUseCases":[{"title":"Verify chain support before DeFi operation","prompt":"Before I try to look up a wallet's DeFi positions on Arbitrum, can you check Zerion to confirm Arbitrum is a supported chain and get its chain metadata?"},{"title":"Build chain selector for multi-chain app","prompt":"I'm building a multi-chain dashboard — can you fetch the chain details for Base from Zerion so I can populate the chain selector with the right name and attributes?"},{"title":"Resolve chain ID to human-readable info","prompt":"I have a chain ID 'optimism' and I need to get the full chain metadata from Zerion — things like its type and any associated attributes."}],"resultDescription":"A JSON object containing a `data` field with the chain resource including its `id`, `type`, and `attributes` object with chain-specific metadata (name, explorer URLs, etc.), plus a `links` object with a self-referential URL.","failureModes":["Invalid or unsupported chain_id returns a 404 or empty data response","Chain ID string mismatch (e.g. wrong slug format) causes lookup failure","x402 payment failure if USDC balance is insufficient or payment header is malformed","Rate limiting if too many calls are made without proper payment","Network timeout if Zerion API is temporarily unavailable"],"whenToPreferThis":"Use this endpoint when you need to verify or retrieve metadata for a specific blockchain network by its chain identifier within the Zerion ecosystem. Prefer this over generic chain registries when you are already using Zerion for wallet data, DeFi positions, or portfolio lookups, as it ensures chain IDs are consistent with the rest of the Zerion API. It is especially useful for validating chain support before making downstream wallet or transaction queries.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T12:35:26.643Z","isFirstParty":false,"canonicalSlug":"zerion-api-chain-details-lookup-4de77d11"}