Answer listening
Used to confirm with the TOKEN service whether the transaction is successful
WEBSOCKET method:
Recommend using this method
Response method:
After receiving the transaction message issued by the server, reply with a confirmation message via WSS.
The response content is in JSON format:
Response data
{
"type": "confirm",
"tx": ["String"], // Transaction Hash List
}
Response sample
{
"type": "confirm",
"tx": ["a2d9d8d35306bb380824366494273c872bb40d081ec4ecd730829e4da7ece0ce"]
}
HTTPS method:
Request method: POST
Request Path: /user/confirm
Query parameters:application/json
Field name |
Field description |
Example value |
Required |
client_id |
client_id |
1000001 |
yes |
Request parameters:application/json
Request data
{
"tx": ["String"], // Transaction Hash List
}
Sample request data
{
"tx": ["a2d9d8d35306bb380824366494273c872bb40d081ec4ecd730829e4da7ece0ce"]
}
Response data
Response sample
{
"code": 200,
"message": "Success",
"data": null
}