Interface TonWalletState

Describes state of the wallet of the current user in the TON blockchain.

interface TonWalletState {
    @type: "tonWalletState";
    address: string;
    can_enable_backup?: boolean;
    can_export_phrase?: boolean;
    gram_amount: number;
    is_backup_enabled?: boolean;
    is_being_created?: boolean;
    public_key: string;
}

Properties

@type: "tonWalletState"
address: string

Address of the wallet; may be empty if none.

can_enable_backup?: boolean

True, if the user can enable backup for the wallet key.

can_export_phrase?: boolean

True, if the wallet key can be exported using getTonWalletSecretPhrase.

gram_amount: number

The total amount of owned TON Grams, in the smallest units of the cryptocurrency.

is_backup_enabled?: boolean

True, if backup for the wallet key is enabled.

is_being_created?: boolean

True, if the wallet is being created.

public_key: string

Public key of the wallet; may be empty if none.