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

Solver Order Submission API

After the Solver completes the token transfer, it should immediately notify the platform through this API.

1. API Endpoint

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

2. Request Parameters

Parameter
Required
Description

intentId

Yes

Solver order ID

sendUserHash

Yes

Transaction hash of the token transfer to the user

solverAddress

Yes

Solver receiving address

solverCode

Yes

Solver code

timestamp

Yes

Timestamp in milliseconds

sign

Yes

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",
    "sendUserHash":"0x123456789",
    "solverAddress":"0x123456",
    "timestamp":1785822731000,
    "solverCode":"test",
    "sign": "xxxxxxxxxxxxxxxx"
}

4. Response Example

Last updated