- APIs
- Stacks Blockchain API
- Legacy Total And Unlocked STX Supply
Get total and unlocked STX supply (legacy)
Retrieves the total and unlocked STX supply in legacy format 1.0 API.
GET
Parameters
Query Parameters
height
integer Supply details are queried from specified block height. If the block height is not specified, the latest block height is taken as default value. Note that the `block height` is referred to the stacks blockchain.
unanchored
boolean Include data from unanchored (i.e. unconfirmed) microblocks
Status code | Description |
---|---|
200 | GET request that returns network target block times |
4XX | Default Response |
cURL
curl -L \"https://api.hiro.so/extended/v1/stx_supply/legacy_format?height=777678&unanchored=true" \-H 'Accept: application/json'
Response
{"unlockedPercent": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef","totalStacks": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef","totalStacksFormatted": "string","totalStacksYear2050": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef","totalStacksYear2050Formatted": "string","unlockedSupply": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef","unlockedSupplyFormatted": "string","blockHeight": "string"}