TonWalletState

class pyrogram.types.TonWalletState[source]

State of the current user’s wallet in the TON blockchain.

Parameters:
  • wallet_address (str, optional) – Address of the wallet.

  • public_key (bytes, optional) – Public key of the wallet.

  • gram_amount (int, optional) – Balance of the wallet, in the smallest units of the cryptocurrency.

  • is_being_created (bool, optional) – True, if the wallet is being created.

  • is_backup_enabled (bool, optional) – True, if backup of the wallet key is enabled.

  • can_enable_backup (bool, optional) – True, if backup of the wallet key can be enabled.

  • can_export_phrase (bool, optional) – True, if the wallet key can be exported.