Function Signature

getSvmWallets(): Promise<SvmWallet[]>

Description

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

Parameters

None

Returns

  • Promise<SvmWallet[]> - Array of SVM wallet objects

Example

import { authenticatedSvmClient } from './client';

const svmClient = await authenticatedSvmClient();

const svmWallets = await svmClient.getSvmWallets();
console.log('SVM wallets:', svmWallets);

Response Format

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

Error Handling

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