Function Signature

refreshWalletAccountShares(params: {
  accountAddress: string;
  chainName: string;
  password: string;
}): Promise<any[]>

Description

Refreshes wallet account shares. This function generates new key shares for the wallet while maintaining the same security model and threshold signature scheme.

Parameters

Required Parameters

  • accountAddress (string) - The wallet address to refresh shares for
  • chainName (string) - The chain name (e.g., ‘solana’)
  • password (string) - Wallet password for security

Returns

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

Example

import { authenticatedSvmClient } from './client';

const svmClient = await authenticatedSvmClient();

const refreshedShares = await svmClient.refreshWalletAccountShares({
  accountAddress: 'YourSolanaWalletAddress',
  chainName: 'solana',
  password: 'your-password'
});

console.log('Refreshed shares:', refreshedShares);

Error Handling

try {
  const refreshedShares = await svmClient.refreshWalletAccountShares({
    accountAddress: 'YourSolanaWalletAddress',
    chainName: 'solana',
    password: 'your-password'
  });
  console.log('Wallet account shares refreshed successfully');
} catch (error) {
  console.error('Failed to refresh wallet account shares:', error);
}