> ## 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 Wallet Accounts

In Dynamic, we treat each chain (EVM, SOL, etc.) and each wallet app (or wallet provider) as a separate entity.

For example, if connected both EVM and SOL accounts for a MetaMask accounts, you will have two wallet accounts in the list returned by `getWalletAccounts`.

You can use this list to display a list of wallet accounts to the user, or to get the balance of each wallet account, for example.

## Usage

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

    const walletAccounts = getWalletAccounts();
    console.log(walletAccounts);
    ```
  </Tab>

  <Tab title="React">
    Subscribe to wallet account changes so your component re-renders whenever accounts are added or removed:

    ```tsx theme={"system"}
    import { useGetWalletAccounts } from '@dynamic-labs-sdk/react-hooks';

    function WalletList() {
      const { data: walletAccounts = [] } = useGetWalletAccounts();

      return (
        <ul>
          {walletAccounts.map((account) => (
            <li key={account.id}>{account.address}</li>
          ))}
        </ul>
      );
    }
    ```
  </Tab>
</Tabs>

## Related functions

* [Connecting and Verifying a Wallet](/javascript/reference/wallets/connect-and-verify-wallet)
* [Getting Available Wallets to Connect](/javascript/reference/wallets/get-available-wallets-to-connect)
* [Getting Active Network](/javascript/reference/wallets/get-active-network)
* [Switching Active Network](/javascript/reference/wallets/switch-active-network)
* [Getting Native Balance](/javascript/reference/wallets/get-native-balance)
* [Checking Wallet Account Availability](/javascript/reference/wallets/check-wallet-account-availability)
* [Signing Message](/javascript/reference/wallets/sign-message)
* [Removing Wallet Account](/javascript/reference/wallets/remove-wallet-account)
