Layer 231
ToncenterGetStreamingUrl
Get a temporary URL for the TON Center streaming API, used to receive real-time blockchain events (such as new transactions of the user's wallet) without polling. The URL expires at the returned time, after which a new one must be requested.
method
toncenter.getStreamingUrl#cdaf63c7 = toncenter.StreamingUrl;
Returns
toncenter.StreamingUrlGogram Example
res, err := client.ToncenterGetStreamingURL() if err != nil { log.Fatal(err) } fmt.Println("streaming endpoint:", res.URL, "valid until", time.Unix(int64(res.Expires), 0))