Admin
Allocate rewards for a competition
Calculate and allocate rewards for a competition by building a Merkle tree and publishing it to the blockchain
post/api/admin/rewards/allocate
Request body
Example request
{
"competitionId": "12345678-1234-1234-1234-123456789012",
"startTimestamp": 1640995200
}Response
Rewards allocated successfully
Example response
{
"success": true,
"message": "Rewards allocated successfully",
"competitionId": "12345678-1234-1234-1234-123456789012"
}