Layer 231
constructor
walletState#95c5346b flags:# backup_enabled:flags.0?true can_export_phrase:flags.1?true can_enable_backup:flags.2?true address:string public_key:bytes balance:long = WalletState;

Parameters

Name Type Description
BackupEnabled flags.0?true Whether the secret phrase backup is enabled
CanExportPhrase flags.1?true Whether the secret phrase can be exported
CanEnableBackup flags.2?true Whether the backup can be enabled
Address string Wallet address
PublicKey bytes Wallet public key
Balance long Balance, in nanotons

Returns

WalletState

Gogram Example

// Creating WalletStateObj constructor
obj := &tg.WalletStateObj{
    Address: "1 Main St",
    PublicKey: []byte{0x01, 0x02, 0x03},
    Balance: int64(1234567890),

    // Optional fields:
    // BackupEnabled: true,
    // CanExportPhrase: true,
    // CanEnableBackup: true,
}