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