Skip to main content

Function Signature

getSvmWallets(): Promise<{
  walletId: string;
  chainName: string;
  accountAddress: string;
  serverKeySharesBackupInfo: KeyShareBackupInfo;
  externalServerKeyShares: ServerKeyShare[];
  derivationPath?: string;
  thresholdSignatureScheme: ThresholdSignatureScheme;
}[]>

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<Wallet[]> - 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

// Uses the same Wallet interface as getWallets()
interface Wallet {
  walletId: string;
  chainName: string;
  accountAddress: string;
  serverKeySharesBackupInfo: KeyShareBackupInfo;
  externalServerKeyShares: ServerKeyShare[];
  derivationPath?: string;
  thresholdSignatureScheme: ThresholdSignatureScheme;
}

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