Function Signature
Description
Creates a backup of the user’s wallet using the specified backup method. The backup allows the user to recover their wallet on a new device. AfterbackupWallet returns, call response.confirm() to mark the backup as complete with Portal. If your custodian storage step fails (Self-Managed Backups), call response.discard() instead so the native storage callback is released. For Portal-Managed Backups, response.confirm() and response.discard() are safe no-ops — Portal has already finalized the backup before backupWallet returns.
Parameters
PortalBackupMethod
Returns
PendingBackup - An object containing: