replace_wallet()¶
- async Client.replace_wallet()¶
Replace the active wallet with a new or imported wallet.
Usable by Users Bots- Parameters:
wallet (
InputWalletReplacement) – The new or imported wallet replacement payload.password (
str|InputCheckPasswordSRP, optional) – Two-step verification 2FA password, if enabled on the account.
- Returns:
WalletState– On success, the updated wallet state is returned.
Example
state = await app.replace_wallet(wallet=raw.types.InputWalletNew())