Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Solver Order Cancellation API

1. API Endpoint

POST https://{host}/gt/swap/intent/cancel

2. Request Parameters

Parameter
Required
Description

intentId

是

Solver order ID

solverCode

是

Solver code

timestamp

是

Timestamp in milliseconds

sign

是

Request signature. Sort the request parameters (including default values, excluding sign, null values, empty strings, and whitespace-only strings) by parameter name in ascending lexicographical order. Concatenate them as key1=value1&key2=value2 without URL encoding. Using the assigned solverSecret as the key, compute HMAC-SHA256 over the UTF-8 encoded string and convert the result to a 64-character uppercase hexadecimal string.

3.Request Example

{
    "intentId":"10001",
    "timestamp":1785822731000,
    "solverCode":"test",
    "sign": "xxxxxxxxxxxxxxxx"
}

4.Response Example

{
    "resCode":"800",
    "resMsg":"成功",
    "data":""
}

Last updated