Layer 231
method
wallet.getState#ab83b33a = WalletState;

Returns

WalletState

Gogram Example

state, err := client.WalletGetState()
if err != nil {
	log.Fatal(err)
}
switch s := state.(type) {
case *tg.WalletStateObj:
	fmt.Printf("%s: %.4f TON (backup: %v)\n", s.Address, float64(s.Balance)/1e9, s.BackupEnabled)
case *tg.WalletStateEmpty:
	fmt.Println("no wallet yet, being created:", s.Creating)
}