Endpoint Request: /tools/stacked-supply
whoabuddy opened this issue · 1 comments
whoabuddy commented
What endpoint would you like to request?
/tools/stacked-supply/:city
Is this something directly available, or does it have to be calculated?
It has to be calculated, and would require:
- Get total supply
- Get current block height
- Get current reward cycle
- Get total stacked in current cycle
- Return total supply - total stacked
Returns: SingleValue (value: string)
whoabuddy commented
This is superseded by the option in #27 to get the /current
value, e.g.
https://citycoins-api.citycoins.workers.dev/stacking/get-stacking-stats-at-cycle/mia/current
now returns:
{"amountToken":"3073102690","amountUstx":"103335003225"}