Function Signature

getExternalServerKeyShares(params: {
  accountAddress: string;
}): Promise<any[]>

Description

Retrieves external server key shares for a specific Solana wallet address. These key shares are required for signing operations and must be obtained before performing any wallet operations.

Parameters

Required Parameters

  • accountAddress (string) - The Solana wallet address to get key shares for

Returns

  • Promise<any[]> - Array of external server key shares

Example

import { authenticatedSvmClient } from './client';

const svmClient = await authenticatedSvmClient();

const keyShares = await svmClient.getExternalServerKeyShares({
  accountAddress: 'YourSolanaWalletAddress',
});

console.log('Key shares retrieved:', keyShares.length);

Error Handling

try {
  const keyShares = await svmClient.getExternalServerKeyShares({
    accountAddress: 'YourSolanaWalletAddress',
  });
  console.log('Key shares retrieved successfully');
} catch (error) {
  console.error('Failed to retrieve key shares:', error);
}