Layer 231
WalletGetGaslessInfo
Request the current gasless-transfer allowance of the user's wallet. The answer arrives as an update Wallet Gasless Info update (inside the returned Updates) with availability, transfers left, reset time, minimum amount and the relayer address. Check it before wallet. send Transfer to decide whether to also build a gasless (data_gasless) message.
method
wallet.getGaslessInfo#742df0a1 = Updates;
Returns
UpdatesGogram Example
updates, err := client.WalletGetGaslessInfo() if err != nil { log.Fatal(err) } if u, ok := updates.(*tg.UpdatesObj); ok { for _, upd := range u.Updates { if g, ok := upd.(*tg.UpdateWalletGaslessInfo); ok { fmt.Println("gasless available:", g.Available, "left:", g.Left, "relayer:", g.RelayerAddress) } } }