> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dynamic.xyz/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Getting Networks Data

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](https://app.dynamic.xyz/dashboard/chains-and-networks).

You can use that information to display a network picker or something similar.

## Usage

<Tabs>
  <Tab title="JavaScript">
    ```javascript theme={"system"}
    import { getNetworksData } from '@dynamic-labs-sdk/client';

    const networksData = getNetworksData();
    console.log(networksData);
    ```
  </Tab>

  <Tab title="React">
    `getNetworksData()` returns static config set at initialization — no event subscription needed:

    ```tsx theme={"system"}
    import { getNetworksData } from '@dynamic-labs-sdk/client';

    function NetworkPicker({ onSelect }: { onSelect: (networkId: string) => void }) {
      const networks = getNetworksData();

      return (
        <select onChange={(e) => onSelect(e.target.value)}>
          {networks.map((network) => (
            <option key={network.networkId} value={network.networkId}>
              {network.name}
            </option>
          ))}
        </select>
      );
    }
    ```
  </Tab>
</Tabs>

## Related functions

* [Getting Active Network](/javascript/reference/wallets/get-active-network)
* [Switching Active Network](/javascript/reference/wallets/switch-active-network)
