Recovery

class Recovery : AccountRecover

Functions

Link copied to clipboard
suspend fun createRecoverableWallet(config: RecoverableWalletConfig): RecoverableWallet

Create new recoverable wallet using SEP-30. It registers the account with recovery servers, adds recovery servers and device account as new account signers, and sets threshold weights on the account.

Link copied to clipboard
suspend fun getAccountInfo(accountAddress: AccountKeyPair, auth: Map<RecoveryServerKey, AuthToken>): Map<RecoveryServerKey, RecoverableAccountInfo>
Link copied to clipboard
open suspend override fun replaceDeviceKey(account: AccountKeyPair, newKey: AccountKeyPair, serverAuth: Map<RecoveryServerKey, RecoveryServerSigning>, lostKey: AccountKeyPair?, sponsorAddress: AccountKeyPair?): Transaction
Link copied to clipboard
fun sep10Auth(key: RecoveryServerKey): Sep10

Create new auth object to authenticate account with the recovery server using SEP-10.

Link copied to clipboard
open suspend override fun signWithRecoveryServers(transaction: Transaction, accountAddress: AccountKeyPair, serverAuth: Map<RecoveryServerKey, RecoveryServerSigning>): Transaction