User

Get total claimable rewards for the authenticated user

Retrieves the total amount of unclaimed rewards for the authenticated user's wallet address. This endpoint sums all non-claimed rewards from the rewards table for the user's address. Users should have one rewards entry per competition.

get/api/user/rewards/total

Response

Total claimable rewards retrieved successfully

successboolean
addressstring

The authenticated user's wallet address

totalClaimableRewardsstring

The total amount of unclaimed rewards as a string (to handle large numbers)

Example response

{
  "success": true,
  "address": "0x1234567890abcdef1234567890abcdef12345678",
  "totalClaimableRewards": "1000000000000000000"
}

Changes