create_wallet()

async Client.create_wallet()

Create a new TON wallet for the current account.

Usable by Users Bots
Parameters:

password (str | InputCheckPasswordSRP, optional) – Two-step verification 2FA password, if enabled on the account.

Returns:

WalletState – On success, the created wallet state is returned.

Example

state = await app.create_wallet()
print(state.address)