Layer 231
WalletTonConnectGetPending
Get a TON Connect session and the d App requests waiting for the wallet (e. g. transaction signing requests). Each request body is encrypted for the wallet; claim one with wallet. ton Connect Claim Request and answer it with wallet. ton Connect Submit Response.
method
wallet.tonConnectGetPending#11aee065 flags:# dapp_client_id:flags.0?string session_id:flags.1?long = wallet.TonConnectPending;
Parameters
| Name | Type | Description |
|---|---|---|
| DappClientId | flags.0?string | Client ID of the d App, to look the session up by d App |
| SessionId | flags.1?long | ID of the TON Connect session |
Returns
wallet.TonConnectPendingGogram Example
res, err := client.WalletTonConnectGetPending("", sessionID) if err != nil { log.Fatal(err) } for _, r := range res.Requests { fmt.Printf("msg %d topic=%q expires %s (%d encrypted bytes)\n", r.MsgID, r.Topic, time.Unix(int64(r.Expires), 0), len(r.Body)) }