As #Cosmonauts know the @cosmossdk offers APIs for built-in modules using gRPC, REST & Tendermint RPC however we noticed a few that it can't provide, so we built them...
This collection of custom APIs can be deployed as a @Cloudflare Worker or compatible serverless platforms
1. 🧮 Total Supply
#Crypto tracking websites such as @CoinMarketCap and @coingecko require an #API endpoint for reporting the total supply of tokens in the main/primary token denomination.
While this figure is available from @cosmossdk's built-in REST endpoint, this returns a #JSON object in the lowest token denomination, which cannot be parsed by @CoinMarketCap / @coingecko .
Likewise these sites require the circ. supply of tokens in the primary token denomination
This figure is not available from any @CosmosSDK API, because the criteria for determining circulating vs "non-circulating" accounts is defined by @CoinMarketCap
This API calculates the circulating supply by subtracting the account balances of a defined list of wallet addresses ("circulating supply watchlist").
Finally, our Total Account Balance API helps to retrieve the account balance for a specified account
Of course, you could just find this info in an explorer or use the @cosmossdk REST API however we found we needed something more flexible...
As the @cosmossdk REST API returns a JSON with the account balances it's hard to parse to something like @googlesheets to run analysis and checks.
This API returns a plain number that can be directly plugged into applications, without having to parse JSON.
Shoutout as usual to our great engineering team in particular @EEAnder1 who have worked quickly to provide the various APIs that have been requested by team members or external providers
Hopefully this will be useful for other @cosmos builders - reach out with any questions
• • •
Missing some Tweet in this thread? You can try to
force a refresh
First up, @datadoghq, a tool that provides monitoring of servers, databases, tools, and services, through a SaaS-based data analytics platform.
You can think it like a task manager on your laptop
Using @datadoghq we keep an eye on metrics from @Tendermint_Core (e.g. if a validator double signs a transaction) and the @cosmossdk (e.g. transactions / day) to ensure the network runs smoothly & any security vulnerabilities/issues that may impact consensus are quickly resolved
We’ll cover the benefits of each in our latest #OpenSourcing thread - Day 4 of documenting our OpenSource-athon
We've used #terraform to automate our #infrastructure - essentially to complete a series of tasks in a defined order required for things like setting up a node
If you’re thinking of running your own #airdrop or community rewards programme and need a go to place for your community to retrieve their rewards, we've got you.
We’ve open sourced the community airdrop rewards site, and like what we shared yesterday, it is built using @Cloudflare Pages and designed it to be highly scalable.
Whys this?
👇👇
#Airdrop reward sites need to be more resilient to traffic spikes than most websites because, when announced, community members will tend to flock to the site to claim their rewards generating a large spike in traffic, followed by a period of much lower traffic
In the @cosmos ecosystem and need a faster way for developers and node operators to acquire #testnet tokens to test out and use the functionalities of your network?
Tired of the operational overhead of sending tokens?
This is a self-serve site that allows users to enter their #testnet address and seamlessly request tokens so they can test out the @cheqd_io network's identity functionalities
We built this using @Cloudflare pages as it provides a fast way to create serverless applications which are able to scale up and down dynamically depending on traffic, at a low cost.
Essentially when a request is made, a tiny server runs for the time needed to process it
A #DID (#DecentralisedIdentifier) is a unique identifier that doesn't require a centralised registration authority because it is registered with a distributed ledger technology or other form of registry.