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

# Retrieve Top Holders

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "DIDhub OPENAPI",
    "description": "Testing the didhub open API",
    "version": "0.1.0",
    "contact": {
      "name": "DIDhub Dev Team",
      "email": "tech@didhub.com"
    }
  },
  "paths": {
    "/v1/statistics/leaderboard/holders/": {
      "get": {
        "operationId": "getTopHolders",
        "summary": "Retrieve Top Holders",
        "tags": [
          "Statistics"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "Unstoppable Domains",
                "HashKey DID",
                ".arb Name Service",
                "CyberConnect",
                "Decentraland Names",
                "Avvy Domains",
                ".bnb Name Service",
                "Ethereum Name Service",
                "Lens Protocol",
                "Freename"
              ]
            },
            "in": "query",
            "name": "project",
            "required": false,
            "description": "The project of the domain to resolve"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "Moonbeam",
                "PlatON",
                "Avalanche",
                "Arbitrum",
                "Ethereum",
                "BNB Chain",
                "Polygon",
                "Aurora",
                "Cronos"
              ]
            },
            "in": "query",
            "name": "chain",
            "required": false,
            "description": "The chain of the domain"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "USD",
                "ETHEREUM:0x0000000000000000000000000000000000000000",
                "BITCOIN:0x0000000000000000000000000000000000000000"
              ],
              "default": "USD"
            },
            "in": "query",
            "name": "currency",
            "required": false,
            "description": "The currency of the domain to resolve"
          },
          {
            "schema": {
              "type": "integer",
              "default": 20,
              "maximum": 100
            },
            "in": "query",
            "name": "pageSize",
            "required": false,
            "description": "The page size that you want to retrieve"
          },
          {
            "schema": {
              "type": "integer",
              "default": 0,
              "maximum": 2000
            },
            "in": "query",
            "name": "pageNumber",
            "required": false,
            "description": "The page number that you want to retrieve. Maximum is 2000 to avoid deep pagination."
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "holder",
                "holdings",
                "spent",
                "sales"
              ]
            },
            "in": "query",
            "name": "sortBy",
            "required": false,
            "description": "The field that you want to sort by"
          },
          {
            "schema": {
              "type": "string",
              "default": "desc",
              "enum": [
                "asc",
                "desc"
              ]
            },
            "in": "query",
            "name": "sortDirection",
            "required": false,
            "description": "The direction that you want to sort by"
          }
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Successful Response",
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "number",
                      "description": "Status Code",
                      "default": 0
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "results": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "holder": {
                                "type": "object",
                                "description": "The address properties",
                                "properties": {
                                  "address": {
                                    "type": "string",
                                    "description": "A Wallet Address or A Contract Address",
                                    "example": "0x0000000000000000000000000000000000000000"
                                  },
                                  "isContract": {
                                    "type": "boolean",
                                    "description": "Whether the address is a contract address",
                                    "default": false
                                  }
                                }
                              },
                              "holdings": {
                                "type": "number"
                              },
                              "spent": {
                                "type": "number"
                              },
                              "sales": {
                                "type": "number"
                              },
                              "offers": {
                                "type": "number"
                              },
                              "listings": {
                                "type": "number"
                              },
                              "collections": {
                                "type": "number"
                              },
                              "chains": {
                                "type": "number"
                              },
                              "feeToken": {
                                "type": "string",
                                "description": "Fee Token. Native Token is given by zero-address",
                                "example": "0x0000000000000000000000000000000000000000"
                              },
                              "collectionList": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "chainList": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        },
                        "meta": {
                          "type": "object",
                          "properties": {
                            "pageSize": {
                              "type": "number"
                            },
                            "pageNumber": {
                              "type": "number"
                            },
                            "total": {
                              "type": "number"
                            }
                          }
                        }
                      }
                    },
                    "message": {
                      "type": "string",
                      "description": "Status Message",
                      "default": "ok"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Error",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Internal Error",
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "number",
                      "description": "Status Code",
                      "default": 1
                    },
                    "message": {
                      "type": "string",
                      "description": "Status Message",
                      "example": "Internal Error"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://stage-api.didhub.com/openapi",
      "description": "Stage Server"
    },
    {
      "url": "https://api.didhub.com/openapi",
      "description": "Production Server"
    },
    {
      "url": "http://127.0.0.1:3000/openapi",
      "description": "Local Server"
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 99,
      "1": 132,
      "2": 58,
      "3": 157,
      "4": 95,
      "5": 212,
      "6": 18,
      "7": 0,
      "8": 86,
      "9": 140,
      "10": 111,
      "11": 72
    }
  }
}
```