WalletState

class pyrogram.types.WalletState[source]

Contains information about the native TON wallet state, balance, and backup settings.

Parameters:
  • address (str, optional) – Address of the user’s wallet in the TON blockchain.

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

  • balance (int, optional) – Current balance in nano-TON.

  • backup_enabled (bool, optional) – Whether cloud backup is enabled across data centers.

  • can_export_phrase (bool, optional) – Whether the recovery phrase can be exported.

  • can_enable_backup (bool, optional) – Whether backup can be enabled for this wallet.

  • is_empty (bool, optional) – True if the wallet is uninitialized.

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