Function Signature

getWallet(params: {
  accountAddress: string;
}): Promise<Wallet>

Description

Retrieves detailed information about a specific SVM wallet by its account address. This function requires authentication and returns comprehensive wallet information including the wallet ID, threshold signature scheme, and chain details.

Parameters

Required Parameters

  • accountAddress (string) - The Solana wallet address to retrieve

Returns

  • Promise<Wallet> - Detailed wallet information including:
    • walletId - Unique wallet identifier
    • accountAddress - The wallet’s Solana address
    • thresholdSignatureScheme - The threshold signature scheme used
    • chainName - The chain name (e.g., ‘solana’)

Example

import { authenticatedSvmClient } from './client';

const svmClient = await authenticatedSvmClient();

const wallet = await svmClient.getWallet({
  accountAddress: 'YourSolanaWalletAddress',
});

console.log('Wallet details:', wallet);
console.log('Wallet ID:', wallet.walletId);
console.log('Threshold scheme:', wallet.thresholdSignatureScheme);

Error Handling

try {
  const wallet = await svmClient.getWallet({
    accountAddress: 'YourSolanaWalletAddress',
  });
  console.log('Wallet retrieved successfully');
} catch (error) {
  console.error('Failed to retrieve wallet:', error);
}