walletApi.getWallets
getWallets: ({cursor?: string, limit?: number, chainType?: 'ethereum' | 'solana'}) => Promise<{data: WalletApiWalletResponseType[], nextCursor?: string}>
const wallets = []; let nextCursor; do { const result = await privy.walletApi.getWallets({chainType: 'ethereum', cursor: nextCursor}); wallets.push(...result.data); nextCursor = result.nextCursor; } while (nextCursor); const wallet = wallets.find((wallet) => wallet.address === desiredAddress);
getWallets