Skip to main content

Get Circulating Supply

This endpoint allows you to fetch the circulating supply of XCH, excluding burned tokens and prefarm balances.

Endpoint

GET https://api.spacescan.io/stats/circulating-supply

Parameters

ParameterTypeRequiredDefaultDescription
networkstringNomainnetNetwork to query (mainnet, testnet)
explainbooleanNofalseIf true, returns detailed breakdown of locked balances
Free API

Use api.spacescan.io for free tier access. See our API Plans for rate limits and features.

Pro API

Use pro-api.spacescan.io with your API key in the x-api-key header. See our API Plans for details.

curl -X GET "https://pro-api.spacescan.io/stats/circulating-supply" \
-H "x-api-key: YOUR_API_KEY"

Live API Test

Request Examples

curl -X GET "https://api.spacescan.io/stats/circulating-supply"
curl -X GET "https://api.spacescan.io/stats/circulating-supply?explain=true"

Response

{
"status": "success",
"circulating-supply": 123456.789
}

Response Schema

FieldTypeDescription
statusstringSuccess or failure status
circulating-supplynumberCurrent circulating supply of XCH
explanationobject(Optional) Detailed breakdown when explain=true
explanation.total_supplynumberTotal XCH supply including locked balances
explanation.locked_balancesarrayList of addresses with locked balances
explanation.total_lockednumberTotal amount of XCH locked

Notes

  • Circulating supply is calculated as: total_supply - total_locked
  • Locked balances include:
    • Burned tokens (sent to dead address)
    • Prefarm balances (3 strategic reserve addresses)
  • Response is cached for 2 minutes
  • Use explain=true parameter to get detailed breakdown of locked balances