Skip to content
Logo

Points API

The leaderboard is public. Account points and referral changes require a signed-in session.

Point units

The API returns point totals as pointMillis decimal strings. Divide by 1,000 to display points.

displayed points = pointMillis / 1,000

Leaderboard

GET /api/points/leaderboard
{
  "entries": [
    {
      "account": "0xWICKPLAY_ACCOUNT",
      "pointMillis": "1250000",
      "rank": 1
    }
  ],
  "season": "Season 0"
}

The response contains up to 100 accounts, ordered by points.

Signed-in account

GET /api/points/account
Cookie: wickplay_session=...

The response includes:

FieldMeaning
accountSigned-in WickPlay account
pointMillisTotal points in thousandths
rankCurrent leaderboard rank
seasonCurrent points season
tokenIdsWickPass token IDs held by the account
wickPassBoostBasisPointsCombined WickPass boost, capped at 50,000
activeMultiplierBasisPointsTotal multiplier, from 10,000 to 60,000
referral.codeReferral code owned by this account
referral.joinedQualified referrals
referral.pendingReferrals that have not qualified
referral.earnedPointMillisPoints earned by the referrer in thousandths

For multipliers, 10,000 basis points equals 1.00x and 60,000 equals 6.00x.

Submit a referral code

POST /api/points/referrals
Content-Type: application/json
Origin: https://wickplay.com
Cookie: wickplay_session=...
{
  "code": "WICK-XXXXXXXX"
}

A new referral returns 201:

{
  "accepted": true,
  "status": "pending"
}

An account cannot refer itself or replace an existing referral. The referral qualifies under the points rules.