get_ton_wallet_state()

async Client.get_ton_wallet_state()

Get the state of the current user’s TON wallet.

Usable by Users Bots
Returns:

TonWalletState – The state of the wallet.

Example

state = await app.get_ton_wallet_state()
print(state.wallet_address, state.gram_amount)