v1

latestOpenAPI 3.0.0ISC License2026-07-17873443.7 KB
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

competitionIdstring uuid required

The competition ID to allocate rewards for

startTimestampinteger required

The timestamp from which rewards can be claimed

Example request

{
  "competitionId": "12345678-1234-1234-1234-123456789012",
  "startTimestamp": 1640995200
}

Response

Rewards allocated successfully

successboolean

Operation success status

messagestring

Success message

competitionIdstring uuid

The competition ID that rewards were allocated for

Example response

{
  "success": true,
  "message": "Rewards allocated successfully",
  "competitionId": "12345678-1234-1234-1234-123456789012"
}