Claim Rewards
POST/rewards/claim
Claims all the filtered undisbursed rewards for a user
Request
- application/json
Body
required
challengeId string
The challenge ID to filter rewards (optional)
specifier string
The specifier to filter rewards (optional)
userId stringrequired
The user ID to claim rewards for
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 - No rewards to claim or invalid parameters
Server error
Loading...