singleChainTokens resource is the high-performance path for token data. By targeting a specific network, this resource offers faster response times and lower latency than its multi-chain counterpart.
Access this resource via hydric.singleChainTokens.
Listing Tokens
To list tokens on a specific chain, provide the numericchainId as the first argument.
Searching Tokens
Search for a token by ticker or name on a specific network.Why use Single-Chain?
WhilemultichainTokens is powerful for discovery, singleChainTokens is preferred for:
- Transaction Simulation: When you need the exact address on a specific chain to prepare a swap.
- Latency-Sensitive Apps: Dashboard widgets that update frequently.
- Chain-Specific Views: When the user has already selected a target network in your UI.
Data Model
TheSingleChainTokenMetadata object includes:
address: The token contract address on this specific chain.chainId: The numeric ID of the network.symbol: Token ticker.name: Full name.decimals: Token precision.