Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.duelduck.com/llms.txt

Use this file to discover all available pages before exploring further.

Cancels a crypto prediction and initiates refunds to all participants. The action is recorded in the audit log.

Parameters

NameTypeHeaderRequiredDescription
AuthorizationstringBearer
<refresh_token>
yesAuthorization
Bearer token

Request

Prediction cancel request. Type: object. Request content type: application / json . Body:
{
  "cancellation_reason": "string",
  "duel_id": "string",
  "status": 0
}

Responses

Response content type: application / json .

Code 200

Refund transaction hashes.
{
  "tx_hashes": [
    "string"
  ]
}

Code 400

Invalid request data.
{
  "message": "string",
  "status": 0
}

Code 401

Unauthorized.
{
  "message": "string",
  "status": 0
}

Code 403

Admin permission required.
{
  "message": "string",
  "status": 0
}

Code 500

Internal server error.
{
  "message": "string",
  "status": 0
}