GetChains will return the list of supported chains by Trails.
Chains & Discovery
GetChains
POST
GetChains will return the list of supported chains by Trails.
Documentation Index
Fetch the complete documentation index at: https://anypay-trails-api-docs.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
TheGetChains endpoint retrieves a list of all blockchain networks supported by Trails. This is useful for building chain selection UIs, validating user inputs, and discovering which networks are available for cross-chain transactions.
Use Cases
- Build chain selection dropdowns in your UI
- Validate that user-selected chains are supported
- Display chain metadata (name, logo, native token)
- Filter chains by bridging support
- Identify testnet vs mainnet networks
- Get block explorer URLs for transaction links
Request Parameters
Optional Fields
- routeProvider (string): Filter chains by a specific route provider (e.g., “CCTP”, “RELAY”)
Response
The response includes:- chains (ChainInfo[]): Array of supported chain information
ChainInfo Object Structure
Each chain object contains:- id (number): The chain ID
- name (string): Human-readable chain name
- tokenName (string): Native token name (e.g., “Ether”)
- tokenSymbol (string): Native token symbol (e.g., “ETH”)
- tokenDecimals (number): Native token decimals
- isTestnet (boolean): Whether this is a testnet
- supportsBridging (boolean): Whether bridging is supported on this chain
- logoUri (string, optional): URL to chain logo
- blockExplorerUrl (string, optional): Block explorer base URL
Examples
Get All Supported Chains
Filter by Route Provider
Build Chain Selector UI
Get Chains with Bridging Support
Common Chain IDs
| Chain | Chain ID | Native Token |
|---|---|---|
| Ethereum | 1 | ETH |
| Polygon | 137 | MATIC |
| Arbitrum One | 42161 | ETH |
| Optimism | 10 | ETH |
| Base | 8453 | ETH |
| Avalanche | 43114 | AVAX |
| BNB Chain | 56 | BNB |
Chain support is continuously expanding. Use this endpoint to get the current list rather than hardcoding chain IDs.
Next Steps
GetTokenList
Get available tokens for selected chains
QuoteIntent
Request a quote for cross-chain transactions