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

◻️Solver Order Creation API

When the user confirms the exchange, the platform calls this API to create an order.

1. API Call

  • HTTP Method: POST

  • Provider: Solver

2. Request Parameters

Parameter
Required
Description

intentId

Yes

Solver order ID

fromAmt

Yes

Amount of the source token provided by the user

fromCoin

Yes

Source token/currency

toCoin

Yes

Target token/currency

toAmt

Yes

Amount the user should receive

destinationAddr

Yes

User's receiving address

3. Request Example

{
    "intentId": "123456",
    "fromAmt": "1000000",
    "fromCoin": "USDT(BASE)",
    "toCoin": "USDT(ETH)",
    "toAmt": "999800",
    "destinationAddr": "0x123456"
}

4. Response Example

5. Response Parameters

Parameter
Type
Description

result

String

Returns success when the order is created successfully

Last updated