Layer 231
WalletTonConnectSubmitResponse
Deliver the wallet's encrypted response to a d App's TON Connect request, e. g. the signed transaction result for a send Transaction request, after claiming it with wallet. ton Connect Claim Request.
method
wallet.tonConnectSubmitResponse#fac67d3c flags:# session_id:long msg_id:int body:bytes trace_id:flags.0?string = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| SessionId | long | ID of the TON Connect session |
| MsgId | int | ID of the request being answered |
| Body | bytes | Encrypted JSON-RPC response to deliver to the d App |
| TraceId | flags.0?string | Trace ID of the request being answered |
Returns
BoolGogram Example
// encryptedResponse: the JSON-RPC reply (e.g. the signed BoC for sendTransaction), encrypted for the dApp. ok, err := client.WalletTonConnectSubmitResponse(req.SessionID, req.MsgID, encryptedResponse, req.TraceID) if err != nil { log.Fatal(err) } fmt.Println("response delivered:", ok)