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.

Allows an authenticated user to join an existing app-based crypto prediction.

Parameters

NameTypeHeaderRequiredDescription
AuthorizationstringAuthorizationyesAuthorization Bearer token

Request

Prediction join request. Type: object. Request content type: application / json . Body:
{
  "duel": {
    "answer": 0,
    "duel_id": "string",
    "external_source": "string",
    "invited_by": "string",
    "paid_price": 0
  },
  "tx_hash": "string"
}

Responses

Response content type: application / json .

Code 200

Joined the prediction successfully.
{
  "player": {
    "answer": 0,
    "created_at": "string",
    "duel_id": "string",
    "final_status": 0,
    "id": "string",
    "is_winner": true,
    "paid_price": 0,
    "user_id": "string",
    "win_amount": 0
  },
  "result": {
    "tx_hash": "string"
  }
}

Code 400

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

Code 401

Unauthorized - Invalid or missing claims.
{
  "message": "string",
  "status": 0
}

Code 500

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