Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.dynamic.xyz/docs/llms.txt

Use this file to discover all available pages before exploring further.

Function Signature

getWalletExternalServerKeyShareBackupInfo(params: {
  walletMetadata: WalletMetadata;
}): Promise<KeyShareBackupInfo>

Description

Resolves the backup-pointer info from a walletMetadata object. Typically you read walletMetadata.externalServerKeySharesBackupInfo directly instead of calling this helper.

Parameters

Required Parameters

  • walletMetadata (WalletMetadata) - The cached metadata for this wallet

Returns

  • Promise<KeyShareBackupInfo> - Backup-pointer info. Throws if missing.

Example

import { authenticatedSvmClient } from './client';

const svmClient = await authenticatedSvmClient();
const walletMetadata = JSON.parse(await redis.get(`wallet:${accountAddress}`));

const backupInfo = await svmClient.getWalletExternalServerKeyShareBackupInfo({
  walletMetadata,
});