Skip to main content
Deprecated. Prefer fetchWalletMetadata() or your persisted walletMetadata. See the V1 migration guide.

Function Signature

getSvmWallets(): Promise<{
  walletId: string;
  chainName: string;
  accountAddress: string;
  externalServerKeySharesBackupInfo: KeyShareBackupInfo | undefined;
  externalServerKeyShares: ServerKeyShare[]; // always an empty array
  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;
  externalServerKeySharesBackupInfo: KeyShareBackupInfo | undefined;
  externalServerKeyShares: ServerKeyShare[]; // always an empty array
  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);
}
Last modified on July 3, 2026