Intent Solver settle#
POST /settle#
- The winning solver executes the previously solved auction on-chain.
- The auction to be executed is identified by its ID, which is returned by the solver's
/solveendpoint.
Notes:
- Once a solver accepts a
/settlerequest, it commits to executing the solution on-chain within the required number of blocks.
POST /settle
Content-Type: application/jsonRequest Parameters (SettleRequest)
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| chainIndex | String | Yes | Chain ID | 1 |
| auctionId | String | Yes | Auction ID | 123 |
| submissionDeadlineLatestBlock | String | Yes | The latest block height by which the solution transaction must be included in a block. | 12345678 |
| settleInfos | Array<SettleInfo> | Yes | Contains multiple IDs: the Solution ID (returned by the /solve endpoint) and the Settle ID (emitted via a contract event for business correlation). | |
| > solutionId | String | Yes | Solution ID (returned by the /solve endpoint) | 1 |
| > settleId | String | Yes | Settle ID (emitted via a contract event for business correlation) | 456 |
POST /settle Request Example:
json
{
"chainIndex": "1",
"auctionId": "16911293074615936",
"settleInfos": [
{
"settleId": "16911293081366144",
"solutionId": "1"
}
],
"submissionDeadlineLatestBlock": "24596909"
}
POST /settle Response Example:
json
{
"code": 0,
"msg": "success",
"error_code": "0",
"error_message": "",
"detailMsg": ""
}