cheqd.io Profile picture
Jun 7 11 tweets 8 min read
Whilst our co-founders are making waves; @fraser_again at #money2020 & @ankurb at @DcentralCon before uniting at #Consensus2022, the fun doesn't stop for the team

Day 5 of our #OpenSource-athon, with 5 useful APIs for @cosmos builders

🧮🔂🔐💸💰

github.com/cheqd/data-api

🧵
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 .

cheq this one out here
github.com/cheqd/data-api…
2. 🔂 Circulating Supply

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").

More here if this is useful for you github.com/cheqd/data-api…
3. 🔐 Vesting Account Balance

We noticed that there was no @cosmossdk API that returns balances that are not yet vested for continuous or delayed vesting accounts.

This is useful for any #Cosmos project managing vesting wallets perhaps for team members or investors
4. 💸 Liquid Account Balance

Our Luquid Account Balance API is used to get the continuous/delayed vesting accounts that can be converted to liquid balances.

This ones effective when checking the liquid amount of a wallet that has vesting tokens

github.com/cheqd/data-api…
5. 💰 Total Account Balance

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
 

Keep Current with cheqd.io

cheqd.io Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @cheqd_io

Jun 8
Need help monitoring the health and security of your @cosmos network?

Wondering how to manage roles and backup secrets?

We've got you...

Day 6 of our #OpenSource-athon - today we're sharing tools and methods we use to manage the @cheqd_io network

github.com/cheqd/infra

🧵 Image
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 Image
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
Read 8 tweets
Jun 6
We making it as easy as possible to join @cheqd_io as a validator or developer and start using the identity functionality of the network….

We're also eager to give back to @cosmos and beyond so we’ve #OpenSourced our approach to #infrastructure

🧵

github.com/cheqd/infra
Our #infrastructure uses a blend of #Terraform #Terragrunt and @ansible to improve performance, speed up node setup and more

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

#Terraform open source, free to use and widely adopted, supporting @awscloud @Hetzner_Online @digitalocean and more...
Read 7 tweets
Jun 3
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.

Day 3 of sharing what we've been #OpenSourcing @cheqd_io

github.com/cheqd/airdrop-…
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
Read 6 tweets
Jun 2
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?

We've got you...

🧵

github.com/cheqd/faucet-ui
The latest repo we've #OpenSourced is a simple app we built for @cheqd_io

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

testnet-faucet.cheqd.io
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
Read 5 tweets
Jun 1
Day 2 of our #opensource -athon and another useful tool

@cheqd_io's cross-chain address convertor is able to automate the derivation of any chain address from the #cosmoshub address.

github.com/cheqd/cosmjs-c…

So, why is this useful?

🧵
There is an assumption in the @CosmosEcosystem that wallet addresses across different chains, such as, @cosmoshub, @osmosiszone and @cheqd_io, are all identical.

This is because they all look very similar.

However, each chain's wallet address is actually unique
Interestingly, each network's wallet address can be derived using a common derivation path from the #cosmoshub wallet address.

Using one derivation path #BIP44 means that users that use one secret recovery phrase and core account to interact with multiple networks.
Read 5 tweets
May 31
We’re excited to share that the @cheqd_io DID resolver is now publicly available on our @github.

We’re big fans of #OpenSourcing all that we can, and this is an exciting opportunity to share our work!

github.com/cheqd/did-reso…

But what does this mean?

Read on 🧵
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.

This is known as a Verifiable Data Registry.

w3.org/TR/did-core/
#DIDs are the cornerstone of #SSI and work closely with #VCs (#VerifiableCredentials)

Learn more in our example below which neatly uses James Bond's Aston Martin

learn.cheqd.io/overview/intro…
Read 10 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(