Intent Solver notify#

POST /notify#

Receives notifications for specific reasons, such as the solver being disabled due to a penalty.

bash
curl -X POST 'https://your-api-endpoint.com/OKXDEX/intent/notify' \
  -H 'Content-Type: application/json' \
  -d '{
  "reason": "Non-winner submitted on-chain",
  "action": "Disable immediately",
  "chainIndex": "42161",
  "details": "{\"reason\":\"solution_not_found\",\"settleId\":16977970092880320}"
}'

Request Parameters#

ParameterTypeRequiredDescription
reasonStringYesPenalty reason
actionStringYesPenalty action
chainIndexStringNoChain index where the penalty was triggered
detailsStringNoJSON-encoded string with additional context (e.g. internal reason code, settleId)

Penalty Reasons & Actions#

CodeReasonAction
1Non-winner submitted on-chainDisable immediately
2Low order on-chain success rateDisable for 3 hours
3Malicious quote - auction failedDisable immediately
4Malicious quote - low on-chain success rateManual review
5EBBO violationDisable for 24 hours
6Inflated scoreDisable for 24 hours
7Score inflationRemove from whitelist
8Unfair surplus transferDisable for 24 hours

Request Example#

json
{
  "reason": "Non-winner submitted on-chain",
  "action": "Disable immediately"
}

Response Example#

json
{
  "code": 0,
  "msg": "success",
  "data": null
}