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

> [tab] JavaScript
>
> ```javascript theme={"system"}
> import { getWalletAccounts } from '@dynamic-labs-sdk/client';
>
> const walletAccounts = getWalletAccounts();
> console.log(walletAccounts);
> ```

> [tab] 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>
>   );
> }
> ```

## Related functions

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


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.