If you want to get data for all networks that are available in your app, you can use the getNetworksData function. It will return a list of NetworkData objects, each containing useful information about the network, such as the id, chain, name, icon, rpc urls, currency data, etc. This list is based off the networks that are enabled in your environment settings in the Dynamic dashboard. You can use that information to display a network picker or something similar.

Usage

import { getNetworksData } from '@dynamic-labs-sdk/client';

const networksData = getNetworksData();
console.log(networksData);