An API for basic info about the Juno token supply.
The base route /
returns all info in JSON:
{
"circulatingSupply": "257724268.83225",
"communityPool": "144096.149954",
"denom": "FLIX",
"totalStaked": "8622418.382844",
"totalSupply": "302868364.982205"
}
/circulating-supply
: returns circulating supply in plain text/total-supply
: returns total supply in plain text/community-pool
: returns community pool size in plain text/denom
: returns denom in plain text
- Get total supply.
- Get community pool.
- Subtract community pool from total supply.
- Iterate through list of vesting amounts for large accounts (like the Dev Fund), and subtract the vesting ammount from total supply.
This yields the circulating supply.
Vesting accounts are provided by an environment variable. See .env.example
for an example.