Claim Coin Reward Code
POST/coins/:mint/redeem/:code
Claims a coin reward using a given code
Request
Path Parameters
mint stringrequired
The mint address of the coin
code stringrequired
The reward code to claim
Query Parameters
user_id stringrequired
The user ID of the user making the request
Responses
- 200
- 400
- 500
Success
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
data
object[]
required
challengeId stringrequired
The challenge ID
specifier stringrequired
The challenge specifier
amount string
The reward amount
signatures string[]
Transaction signatures
error string
Error message if claim failed
{
"data": [
{
"challengeId": "u",
"specifier": "7eP5n",
"amount": "1000000000",
"signatures": [
"5j7s1QjmRKFuDbCWMRVRNibSV2VAAEcNKP6HWU7GwPdXkBZvhz8n4vQl7bBq8tN4Rz9x1Kj3mP5wQ8rT2Y6zA"
],
"error": "Insufficient balance"
}
]
}
Bad request - Code is invalid or already used
- application/json
- Schema
- Example (from schema)
Schema
error string
Possible values: [used, invalid]
Error message indicating why the code cannot be redeemed
{
"error": "used"
}
Server error
Loading...