Leaderboard

GraphQL Endpoint to fetch the leaderboard of a quest or aggregated points for any quest participant.

GraphQL Query

query Leaderboard($activityTrackerId: Int!, $page: Int, $pageSize: Int) {
  leaderboard(activityTrackerId: $activityTrackerId, page: $page, pageSize: $pageSize) {
    activityTrackerId
    totalParticipants
    participants {
      walletAddress
      twitterId
      discordId
      email
      twitterUsername
      discordUsername
      points
      rank
    }
  }
}

Variables

{
    "pageSize": Int, // Number of events entries in a fetch. Upper limit = 100
    "page": Int, // Page number
    "activityTrackerId": Int // activity tracker id
}

Response

Examples

POST https://dashboard.withblaze.app/api/graphql-api

Query Parameters

Name
Type
Description

page

1

pageSize

10

Max Limit - 100

activityTrackerId*

QUEST-ID

Required: Activity tracker id

If the quest ID is not specified, then the request will throw an error

Headers

Name
Type
Description

x-api-key*

API-KEY

Your Blaze API Key

Last updated

Was this helpful?