Chiliz Chain API

The Chiliz Chain API provides access to useful information about the CHZ supply and governance, including circulating supply details up to a specific block and staking information for a given address.

API Details

Base URL

The API's base URL is https://cc-api.chiliz.com/

The default Swagger doc is available here: https://cc-api.chiliz.com/docs

Authentication

The Chiliz Chain API uses the OpenAPI Specification (OAS) v3.0.3 for defining its security schemes.

Please refer to the OAS 3.0 specification for details on how to authenticate, as specific authentication methods are not detailed in this documentation.

Data Format

All requests and responses are in JSON format.

Endpoints

GET /supply

Retrieves the current circulating supply of CHZ up to a specified block number, along with block-specific inflation and deflation information.

get
Query parameters
blocknumberOptional
Responses
200
Default Response
application/json
get
GET /supply HTTP/1.1
Host: 
Accept: */*
200

Default Response

{
  "block": "text",
  "totalSupply": "text",
  "blockDeflation": "text",
  "blockInflation": "text",
  "totalBurnedSupply": "text",
  "totalIntroducedSupply": "text"
}

GET /staker-info

Retrieves the current total staked amount and staking rewards for a specific address up to a certain epoch number, along with details of where the CHZ is staked (validators and amounts).

get
Query parameters
validatorstringOptional
stakerstringRequired
toEpochnumberOptional
Responses
200
Default Response
application/json
get
GET /staker-info?staker=text HTTP/1.1
Host: 
Accept: */*
200

Default Response

{
  "totalRewards": "text",
  "stakedAmount": "text",
  "allStakes": [
    {
      "validator": "text",
      "stakedAmount": 1
    }
  ]
}

Last updated

Was this helpful?