Const
Registry of all supported Vana chains indexed by chain ID.
Provides runtime access to chain configurations for dynamic network selection. Use this when you need to select chains based on user input or environment variables.
const chainId = parseInt(process.env.CHAIN_ID || '14800');const chain = chains[chainId];if (!chain) { throw new Error(`Unsupported chain ID: ${chainId}`);}const client = createPublicClient({ chain, transport: http()}); Copy
const chainId = parseInt(process.env.CHAIN_ID || '14800');const chain = chains[chainId];if (!chain) { throw new Error(`Unsupported chain ID: ${chainId}`);}const client = createPublicClient({ chain, transport: http()});
Registry of all supported Vana chains indexed by chain ID.