Chain and Token Types
Types for representing blockchain networks and token metadata.Chain
Metadata for a supported blockchain network.Properties
| Property | Type | Description |
|---|---|---|
id | number | Unique chain identifier (e.g., 1 for Ethereum, 42161 for Arbitrum, 999 for HyperEVM) |
key | string | Short identifier/slug for the chain (e.g., “eth”, “arb”, “hyperevm”) |
name | string | Human-readable chain name (e.g., “Ethereum”, “Arbitrum One”, “HyperEVM”) |
logoUrl | string | URL to the chain’s logo image for UI display |
nativeToken | Token | The native gas token used on this chain (e.g., ETH, HYPE) |
isEvm | boolean | Whether the chain is EVM-compatible |
Example
Token
Metadata for a token on a specific chain.Properties
| Property | Type | Required | Description |
|---|---|---|---|
address | string | Yes | Token contract address. Use 0x0000000000000000000000000000000000000000 for native tokens. |
symbol | string | Yes | Token ticker symbol (e.g., “USDC”, “ETH”, “HYPE”) |
name | string | Yes | Full token name (e.g., “USD Coin”, “Ether”) |
decimals | number | Yes | Number of decimal places (e.g., 6 for USDC, 18 for ETH) |
logoUrl | string | Yes | URL to token logo image for UI display |
priceUsd | number | No | Current USD price per token (may not always be available) |
chainId | number | Yes | Chain ID where this token exists |
Example
ChainsResponse
Response wrapper for chain queries with cache metadata.Properties
| Property | Type | Description |
|---|---|---|
chains | Chain[] | Array of supported chains |
isStale | boolean | true if data is from an expired cache (used as fallback due to API error) |
cachedAt | number | null | Unix timestamp when data was cached, or null if freshly fetched |
Example
TokensResponse
Response wrapper for token queries with cache metadata.Properties
| Property | Type | Description |
|---|---|---|
tokens | Token[] | Array of tokens for the requested chain |
isStale | boolean | true if data is from an expired cache |
cachedAt | number | null | Unix timestamp when data was cached, or null if fresh |
