backup

open suspend fun backup(backupMethod: BackupMethods = BackupMethods.Gdrive, progress: (status: MpcStatus) -> Unit = {}): BackupWalletResponse

Initiates a backup process for the wallet using the specified backup method.

Return

A BackupWalletResponse containing backup details and a storage callback.

Parameters

backupMethod

The method of backup, defaulting to Google Drive (Gdrive).

progress

A lambda function to track the progress of the backup operation.

Throws

If the version is not v6, or if a wallet modification operation is already in progress.