This API provides the circulating supply for tokens, which can be useful for CoinGecko listings and other purposes.
To use this API, add the tokens you want to track to the tokens.json file and deploy the application.
Retrieves the circulating supply of a specific token.
- URL:
/:ticker/circulating - Method: GET
- Path Parameters:
ticker(string, required): The ticker symbol of the token, as specified intokens.json.
- Response:
- Status Code: 200 (OK)
- Body:
{ "circulating_supply": 1272.4545 }
- URL:
/:ticker/total-supply - Method: GET
- Path Parameters:
ticker(string, required): The ticker symbol of the token, as specified intokens.json.
- Response:
- Status Code: 200 (OK)
- Body:
{ "total_supply": 200000000 }
The tokens.json file contains the token configuration. For each token, you can provide the following information:
watch specifies the address to sub from total supply
flexible_supply false by default is used if token has flexible supply.
if brc20-token is not fully minted set to true .Will automaticaly be flagged false internally if fully minted
burn_or_bridge address where certain funds were burned to or locked permanently in bridge as funds. Is optional
{
"O4DX": {
"name":"O4DX(Orangedx)",
"chains": ["56", "btc"],
"address": {
"56": "0x062ca2d2F1aF8C203FA3Ad5298FD6fAa4E44E897",
"btc": "O4DX"
},
"watch": {
"56": ["..."],
"btc": ["..."]
},
"flexible_supply":{
"56":false,
"btc":false
},
"burn_or_bridge":{
"56":["0x135F5fA613330f444EDB51A29A25288086F37cf9"],
"btc":[ "bc1ps0d9d5gw3tg6pz3pzqyj6u3w3j33suynvksmvu393x0vx5j2xvkq95ff5k"]
}
}
}default set at 15 req in 15 min.