Interface ReplaceTonWallet

Replaces the current TON wallet with another existing v6r2 wallet or changes private key of the current TON wallet; can be used only if getOption("can_use_ton_wallet"). Request type for Tdjson#replaceTonWallet.

interface ReplaceTonWallet {
    @type: "replaceTonWallet";
    anchor_public_key: string;
    password: string;
    proof: TonWalletOwnershipProof;
}

Properties

@type: "replaceTonWallet"
anchor_public_key: string

Original public key of the new TON wallet.

password: string

Password of the current user; pass an empty string unless receive an error with a message "PASSWORD_MISSING" for a passwordless request.

Proof of ownership of the new private key of the TON wallet; use getTonWalletOwnershipProofChallenge to get a challenge for the proof.