Layer 231
WalletTonConnectNextEventId
Get the next event ID for a TON Connect session; event IDs number the events the wallet sends to the d App.
method
wallet.tonConnectNextEventId#775d7244 session_id:long = TonConnectNextEventId;
Parameters
| Name | Type | Description |
|---|---|---|
| SessionId | long | ID of the TON Connect session |
Returns
TonConnectNextEventIdGogram Example
ev, err := client.WalletTonConnectNextEventID(sessionID) if err != nil { log.Fatal(err) } fmt.Println("use event id", ev.EventID, "for the next wallet event")