Skip to main content

Get Total Supply

This endpoint allows you to fetch the total supply of XCH in circulation.

Endpoint

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

Parameters

ParameterTypeRequiredDefaultDescription
networkstringNomainnetNetwork to query (mainnet, testnet)
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/total-supply" \
-H "x-api-key: YOUR_API_KEY"

Live API Test

Request Examples

curl -X GET "https://api.spacescan.io/stats/total-supply"

Response

Failed to load API response. Please try again later.

Response Schema

FieldTypeDescription
statusstringSuccess or failure status
total-supplynumberTotal XCH supply in circulation

Notes

  • Total supply includes the pre-farm amount (21M) for XCH and ABA networks
  • The value is calculated based on current blockchain height and block rewards
  • Response is cached for 2 minutes