Given a wallet provider key, you can check which addresses are connected. For example, you want to check which MetaMask EVM addresses are connected to you app. For that, you can call the getConnectedAddresses function, passing the metamaskevm key.

Usage

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

const getConnectedAddressesForWalletProvider = async (walletProviderKey) => {
  const { addresses } = await getConnectedAddresses({ walletProviderKey });
  console.log(addresses);
}