CF Workers + IttyRouter + micro-stacks + TypeScript
...and it feels good!
:version
and :cityname
/v1/mia/mining/get-mining-stats-at-block/57934
:version
accepts the major CityCoins contract version, e.g. v1, v2:cityname
routes accept three letter city names, e.g. mia, nyc:blockheight > :cycleid > :userid > :address
If you want to use this for your project, build a copy for yourself, or have any questions, please join the CityCoins Discord or file a GitHub Issue and reach out!
A full list of routes and responses can be found in the OpenAPI documentation.
Some quick examples:
Get the current Stacks block heightSource code is available on GitHub!
“Continuous effort, not strength or intelligence
is the key to unlocking our potential.”
Winston Churchill