import { dynamicClient } from '<path to client file>' // Enabled networks are read from the Dashboard at runtime const evmNetworks = dynamicClient.networks.evm const solanaNetworks = dynamicClient.networks.solana // Example: names for display const evmNames = evmNetworks.map((n) => n.name) const solanaNames = solanaNetworks.map((n) => n.name)
import { useReactiveClient } from "@dynamic-labs/react-hooks"; import { dynamicClient } from "<path to client file>"; const client = useReactiveClient(dynamicClient); await client.wallets.switchNetwork({ wallet: client.wallets.primary, chainId: 8453, });
Was this page helpful?