Weekly or season leaderboard
const url = 'https://api.getchord.xyz/v1/points/leaderboard?scope=week&limit=100';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.getchord.xyz/v1/points/leaderboard?scope=week&limit=100'Wallets ranked by points for one week or the whole season, with base points, referral and streak bonuses, volume, trades, days active and tier. 503 NOT_ENABLED while the program is off on the deployment.
Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters”Week number or current.
Responses
Section titled “ Responses ”object
object
Unix time, seconds, UTC.
Unix time, seconds, UTC.
Unix time, seconds, UTC.
object
EVM address, hex, case-insensitive.
Unix time, seconds, UTC.
Unix time, milliseconds — when the server built this answer.
Examplegenerated
{ "chain": 1, "season": 1, "scope": "example", "week": 1, "weekBounds": { "from": 1, "to": 1 }, "seasonStart": 1, "currentWeek": 1, "weekPool": 1, "rows": [ { "rank": 1, "wallet": "example", "points": 1, "basePoints": 1, "referralBonus": 1, "streakBonus": 1, "volumeUsd": 1, "trades": 1, "daysActive": 1, "tier": "example", "lastTradeTs": 1 } ], "totalWallets": 1, "totalPoints": 1, "totalVolumeUsd": 1, "indexedToBlock": 1, "updatedAt": 1}Invalid parameters — error names the check that failed (INVALID_PARAMS, BAD_ADDRESS, BAD_LIMIT, BAD_HOURS, …).
Every non-2xx body.
object
Stable machine code, e.g. INVALID_PARAMS, NOT_READY, RATE_LIMIT_EXCEEDED.
For humans.
HTTP status, when included.
Example
{ "error": "INVALID_PARAMS", "message": "amount must be an integer string in the token's smallest unit"}The lane behind this endpoint is not ready or not enabled here (NOT_READY, CHAIN_NOT_ENABLED, NOT_ENABLED, *_UNAVAILABLE). Retry later; do not treat it as an empty answer.
Every non-2xx body.
object
Stable machine code, e.g. INVALID_PARAMS, NOT_READY, RATE_LIMIT_EXCEEDED.
For humans.
HTTP status, when included.
Example
{ "error": "INVALID_PARAMS", "message": "amount must be an integer string in the token's smallest unit"}