Skip to main content

Function Signature

Description

Exports external server key shares for a wallet. Verifies the password first, then recovers and returns the plaintext shares.

Parameters

Required Parameters

  • accountAddress (string) - The wallet address (must include 0x prefix). Must match walletMetadata.accountAddress.
  • walletMetadata (WalletMetadata) - The cached metadata for this wallet

Optional Parameters

  • password (string) - Wallet password (required if the wallet is password-encrypted)

Returns

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

Example

Error Handling

Last modified on May 21, 2026