ChainCade
  • đŸ—ģIntroduction
  • đŸĒ™ChainCade Token
  • 👾Welcome To The Retroverse!
    • đŸ•šī¸The Arcade
      • ✨Getting Started
      • 👤Accounts
      • â™¨ī¸Energy
      • đŸŽŸī¸Tickets
      • đŸĒœRanks, Levels & XP
      • 🎁Lucky Boxes
      • â›ąī¸Virtual Hangouts
    • 🌎The Ecosystem
      • 🆕ChainCade API
      • 📈Developer Incubator
      • 🤝CadeCollab for Creators
      • đŸ‘ĨCommunity
      • 🌐Community Hub
    • 🎮ChainCade Games
      • 🌑MoonWar
      • â›“ī¸ChainMan
      • âš”ī¸Chain : Origins
      • 🐧Smarty Penguin
    • 🤖NFTs
      • 🧸Arcade Edition
      • 👩‍🎤ChainCaders
      • 👑Founder's Edition
  • 🔮Coming Soon
    • đŸ›Ŗī¸Road Map
    • 🌌The Retroverse
      • đŸ› ī¸NFT Utilities
      • 📚ChainCade Comics
    • đŸ¤Ģ[REDACTED]
  • â„šī¸Other Info
    • ❓F.A.Q.
    • 🔗Links
    • 📙Changelog
      • Hangout
      • MoonWar
      • ChainMan
      • Chain : Origins
      • Smarty Penguin
      • Accounts
      • Arcade
      • Whitepaper
      • API
      • Community Hub
    • ❗Disclaimer & Terms
Powered by GitBook
On this page
  • Welcome to the ChainCade API documentation.
  • Base URL All API routes should start with the following base URL:
  • Endpoints
  • Usage

Was this helpful?

  1. Welcome To The Retroverse!
  2. The Ecosystem

ChainCade API

***ChainCade API is in Early Development***

PreviousThe EcosystemNextDeveloper Incubator

Last updated 2 years ago

Was this helpful?

Welcome to the ChainCade API documentation.

This API provides developers with access to player and statistical data for the ChainCade platform. Here, you will find information about available endpoints, their use, and the structure of their responses.

Base URL All API routes should start with the following base URL:

Endpoints

GET https://api.chaincade.com/players

This endpoint retrieves an array of all players with a ChainCade account.

The response of the 'users' endpoint will be an array of player objects, each having the following structure:

{
"address": "0x23ea7c29f51222a5997ea3892a3d9f04b57898ae",
"displayName": "Neytiri",
"rank": "Meta Lord",
"rankId": 7,
"accountAge": 447,
"isFounder": true,
"totalTickets": 1004905,
"xp": 10150571
}

GET https://api.chaincade.com/stats

This endpoint retrieves important statistics for the ChainCade platform.

The response of the 'stats' endpoint will be a single JSON object containing the following fields:

{
"totalPlayers": 2570,
"avgAccountAge": 38.14241245136187,
"numOfFounders": 78,
"avgPlayerLevel": 2.451750972762646,
"totalXP": 160953876,
"totalTickets": 22607436,
"topXPEarners": [ // Top 3 XP earners as player objects ],
"topRankers": [ // Top 3 rankers as player objects ],
"topTicketEarners": [ // Top 3 ticket earners as player objects ] 
}

GET https://api.chaincade.com/player/walletaddress

This endpoint retrieves a player by their wallet address.

Path Parameters

Name
Type
Description

walletaddress*

String

Players wallet address

The response will be a single JSON object representing the player with the following fields:

{ 
"address": "0x98c072c4f65307aa5caa78305eec9445f5263aff", 
"displayName": "Lazy", 
"rank": "Captain", 
"rankId": 4, 
"accountAge": 461, 
"isFounder": true, 
"totalTickets": 59183, 
"xp": 2323948 
}

Usage

All requests to the ChainCade API are GET requests. To access the API, simply send an HTTP GET request to the desired endpoint.

For example, to get all players, you would send a request to

👾
🌎
🆕
https://api.chaincade.com
https://api.chaincade.com/players