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:
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"
)