replace_ton_wallet()¶
- async Client.replace_ton_wallet()¶
Replace the current TON wallet with another existing v6r2 wallet, or change the private key of the current one.
Usable by Users Bots- Parameters:
proof (
TonWalletOwnershipProof) – Proof of ownership of the new private key. Useget_ton_wallet_ownership_proof_challenge()to get the challenge to sign.password (
str, optional) – Two-step verification password of the current user.anchor_public_key (
bytes, optional) – Original public key of the new wallet.
- Returns:
TonWalletState– On success, the state of the new wallet is returned.
Example
state = await app.replace_ton_wallet( types.TonWalletOwnershipProof(public_key=key, timestamp=ts, signature=sig), password="password" )