Layer 231
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

Bool

Gogram 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)