Callback request
The callback request is sent from the TSS Node to the callback server.Base request structure
TypePing request
Used for heartbeat monitoring of the callback server. If you have specified themonitor_interval parameter when configuring the TSS Node settings, the node will periodically send the request to verify server availability.
TypePing requests, request_id, request_detail and extra_info will be empty objects.
TypeKeyGen request
Used for key share generation.request_detail
extra_info
TypeKeySign request
Used for transaction or message signing operations.request_detail
extra_info
The
transaction object includes an initiator_type field that identifies how the transaction was initiated, so your callback server can distinguish, for example, an API-initiated transaction from an App-initiated one. Possible values are API (initiated through the WaaS API), Web (initiated from Cobo Portal), App (initiated from Cobo Portal Apps), and External (initiated outside Cobo). For the full transaction schema, see the response of the Get transaction information operation.TypeKeyReshare request
Used for key resharing operations. Resharing means to use an existing key share holder group to generate key shares for a new group.request_detail
extra_info
Callback response
Your callback server must respond to all callback requests with the following structure:HTTP response requirements
The callback response described above is the JSON body of the HTTP response. Return your response with an HTTP200 (OK) status code, and set the body status field to 0 to indicate that your callback server processed the callback successfully.
The HTTP status code and the body status field are different. The HTTP status code reports whether the HTTP request reached and was handled by your callback server, while the body status field reports the result of processing the callback: a value of 0 indicates success, and any other value indicates that an error occurred in the callback server while processing the request.
Example
Important notes
- If the TSS Node fails to receive an HTTP response, it will retry the callback request.
- After exceeding the maximum retry attempts, the risk control result will be set to
REJECT. - For
TypePingrequests, a successful response (bodystatus0) indicates that your callback server is available.
