---
agentTools:
  projectIndex: https://poprank.readme.io/llms.txt
---

# Player Leaderboard

A leaderboard of top PopRank players, either across the app or a single collection.

The player leaderboard is an array of objects with the following structure:

[block:parameters]
{
  "data": {
    "h-0": "Property",
    "h-1": "Description",
    "h-2": "Type(s)",
    "0-0": "user",
    "0-1": "The user's wallet address.",
    "1-0": "rank",
    "2-0": "played",
    "3-0": "topCollections (exists for the global leaderboard)",
    "3-2": "`TopCollection[]`",
    "3-1": "An array of all the collections the user has played, sorted in descending order of rounds played.",
    "2-1": "The number of rounds the user has played across.",
    "2-2": "`number`",
    "1-1": "The user's rank in the leaderboard.",
    "1-2": "`number`",
    "0-2": "`string`"
  },
  "cols": 3,
  "rows": 4
}
[/block]

The `TopCollection` model is the following:

[block:parameters]
{
  "data": {
    "h-0": "Property",
    "h-1": "Description",
    "h-2": "Type(s)",
    "0-0": "collection",
    "1-0": "played",
    "0-1": "The slug of the collection.",
    "0-2": "`string`",
    "1-1": "The number of collection rounds the `user` has played.",
    "1-2": "`number`"
  },
  "cols": 3,
  "rows": 2
}
[/block]