Skip to main content

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.

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);
}