Statistics
Get Total Supply of XCH
This endpoint retrieves the total supply of XCH currently in circulation.
Endpoint
GET https://api.spacescan.io/stats/total-supply
Parameters
Parameter | Type | Description |
---|---|---|
network | string | Optional. Possible values: mainnet , testnet10 |
Version | number | Optional. Defaults to 1 |
Live API Test
🚀 Test API in Browser
Request Example
- cURL
- Python
- JavaScript
curl -X GET "https://api.spacescan.io/stats/total-supply"
import requests
url = "https://api.spacescan.io/stats/total-supply"
response = requests.get(url)
data = response.json()
print(data)
const url = "https://api.spacescan.io/stats/total-supply";
fetch(url)
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
Response
Failed to load API response. Please try again later.
Response Schema
Field | Type | Description |
---|---|---|
status | string | The status of the API request |
supply | string | The total supply of XCH in circulation |
Get XCH Price
This endpoint retrieves the current price of XCH in the specified currency.
Endpoint
GET https://api.spacescan.io/stats/price
Parameters
Parameter | Type | Description |
---|---|---|
cur | string | Required. Currency symbol (e.g., USD) |
network | string | Optional. Possible values: mainnet , testnet10 |
Version | number | Optional. Defaults to 1 |
Live API Test
🚀 Test API in Browser
Response
Failed to load API response. Please try again later.
Response Schema
Field | Type | Description |
---|---|---|
status | string | The status of the API request |
price | string | The current price of XCH in the specified currency |
Get Chia Blockchain Netspace
This endpoint retrieves the current netspace of the Chia blockchain.
Endpoint
GET https://api.spacescan.io/stats/netspace
Parameters
Parameter | Type | Description |
---|---|---|
metrics | string | Required. The unit for netspace (e.g., Eib, Pib, Tib) |
network | string | Optional. Possible values: mainnet , testnet10 |
Version | number | Optional. Defaults to 1 |
Live API Test
🚀 Test API in Browser
Response
Failed to load API response. Please try again later.
Response Schema
Field | Type | Description |
---|---|---|
status | string | The status of the API request |
netspace | string | The current netspace in the specified unit |
Notes
- The
authkey
parameter is no longer required for these endpoints. - The
network
parameter is optional and defaults tomainnet
. - The
Version
parameter is optional and defaults to 1.
For any additional information or support, please contact our API support team or refer to our comprehensive API documentation.