Skip to main content
URL: https://xapi.duelduck.com/duel/solana/join/sign-tx Creates a signed transaction that allows a user to join an app-based crypto prediction.

Parameters

NameTypeHeaderRequiredDescription
AuthorizationstringAuthorizationyesAuthorization Bearer token

Request

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

Responses

Response content type: application / json .

Code 200

Signed transaction returned successfully.
{
  "tx": "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
}