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.

Function Signature

getWallets(): Promise<Wallet[]>

Description

Retrieves all wallets (not just SVM) for the authenticated user. This function returns an array of wallet objects containing information about all wallets associated with the current user.

Parameters

None

Returns

  • Promise<Wallet[]> - Array of wallet objects

Example

import { authenticatedSvmClient } from './client';

const svmClient = await authenticatedSvmClient();

const wallets = await svmClient.getWallets();
console.log('All wallets:', wallets);

Response Format

interface Wallet {
  id: string;
  accountAddress: string;
  chainName: string;
  // ... other wallet properties
}

Error Handling

try {
  const wallets = await svmClient.getWallets();
  console.log('Wallets retrieved:', wallets.length);
} catch (error) {
  console.error('Failed to retrieve wallets:', error);
}