Function Signature
Description
Exports a key for a specific chain using external server key shares. This function reconstructs the key from distributed key shares for the specified blockchain network.Parameters
Required Parameters
accountAddress(string) - The wallet address to export key for (must include0xprefix)externalServerKeyShares(any[]) - Array of external server key shareschainName(string) - The name of the blockchain chain (e.g., ‘base-sepolia’)
Optional Parameters
password(string) - Wallet password (if wallet is password-protected)
Returns
Promise<string>- The exported key as a hex string
Example
Key Share Format
Error Handling
Related Functions
exportPrivateKey()- Export private keyofflineExportKey()- Export key offline