chains
Get chain by ID
Changed onReturns a single chain by its unique chain ID.
Each chain's flags report per-capability support: whether trading, sending, bridging, transaction history, positions and NFT positions are available on that chain.
See also: Testnets (X-Env: testnet)
get/v1/chains/{chain_id}
Request
- Base URLhttps://api.zerion.io
- URLhttps://api.zerion.io/v1/chains/{chain_id}
- AuthHTTP basic
Path parameters
chain_idstring required
Unique chain ID.
Headers
X-Env'testnet'
Set to testnet to return testnet data instead of mainnet.
Response
Response for requested chain
Example response
{
"links": {
"self": "https://api.zerion.io/v1/chains/polygon"
},
"data": {
"type": "chains",
"id": "polygon",
"attributes": {
"external_id": "0x4e454152",
"name": "polygon",
"icon": {
"url": "https://token-icons.s3.amazonaws.com/0x0391d2021f89dc339f60fff84546ea23e337750f.png"
},
"explorer": {
"name": "polygonScan",
"token_url_format": "https://explorer.mainnet.polygon.dev/token/{ADDRESS}",
"tx_url_format": "https://explorer.mainnet.polygon.dev/tx/{HASH}",
"home_url": "https://explorer.mainnet.polygon.dev"
},
"rpc": {
"internal_server_url_format": "https://mainnet.polygon.dev/{polygon_API_KEY}",
"public_servers_url": [
"https://mainnet.polygon.dev"
]
},
"flags": {
"supports_trading": true,
"supports_sending": true,
"supports_bridge": true,
"supports_transactions": true,
"supports_positions": true,
"supports_nft_positions": true
}
},
"relationships": {
"native_fungible": {
"links": {
"related": "https://api.zerion.io/v1/fungibles/0x2af1df3ab0ab157e1e2ad8f88a7d04fbea0c7dc6"
},
"data": {
"type": "fungibles",
"id": "0x2af1df3ab0ab157e1e2ad8f88a7d04fbea0c7dc6"
}
},
"wrapped_native_fungible": {
"links": {
"related": "https://api.zerion.io/v1/fungibles/0x2af1df3ab0ab157e1e2ad8f88a7d04fbea0c7dc6"
},
"data": {
"type": "fungibles",
"id": "0x2af1df3ab0ab157e1e2ad8f88a7d04fbea0c7dc6"
}
}
}
}
}Changes
- info
added the required property
///to the response with the status - info
added the required property
///to the response with the status - info
added the required property
///to the response with the status
- info