usdc.cool

The USDC stablecoin tracker from usdc.cool

Usage no npm install needed!

<script type="module">
  import usdcCool from 'https://cdn.skypack.dev/usdc.cool';
</script>

README

usdc.cool

Get the latest USDC supply across all chains. From usdc.cool.

Quick Start

Just run the following command in your terminal to see the latest supply:

npx usdc.cool
 Ethereum:   $44,669,538,486.37 (89.65%)
   Solana:    $4,056,726,463.26  (8.14%)
     Tron:      $513,251,326.93  (1.03%)
 Algorand:      $357,307,215.40  (0.72%)
  Stellar:      $143,057,771.12  (0.29%)
Avalanche:       $69,118,686.60  (0.14%)
   Hedera:        $8,918,231.35  (0.02%)
     Flow:        $8,908,242.84  (0.02%)
----------------------------------------
    Total:   $49,826,826,423.87

Adding USDC supply to your project

Installation

npm i usdc.cool

Usage

Typescript

All API methods are async and return a Big number, capable of arbitrary-precision arithmetic.

Type definitions are provided as well.

Fetch total supply across all chains
// This code is extracted from the usdc.cool CLI
import { fetchTotalSupply } from "usdc.cool"

const {
  algorandSupply,
  avalancheSupply,
  ethereumSupply,
  flowSupply,
  hederaSupply,
  solanaSupply,
  stellarSupply,
  tronSupply,
  totalSupply
} = await fetchTotalSupply()

console.log(`Algorand: ${algorandSupply.toString()}`)
console.log(`Avalanche: ${avalancheSupply.toString()}`)
console.log(`Ethereum: ${ethereumSupply.toString()}`)
console.log(`Flow: ${flowSupply.toString()}`)
console.log(`Hedera: ${hederaSupply.toString()}`)
console.log(`Solana: ${solanaSupply.toString()}`)
console.log(`Stellar: ${stellarSupply.toString()}`)
console.log(`Tron: ${tronSupply.toString()}`)
console.log("----------")
console.log(`Total: ${totalSupply.toString()}`)
Fetch individual chain supply
// Algorand
import { fetchAlgorandSupply } from "usdc.cool"
const supply = await fetchAlgorandSupply()
// Avalanche
import { fetchAvalancheSupply } from "usdc.cool"
const supply = await fetchAvalancheSupply()
// Ethereum
import { fetchEthereumSupply } from "usdc.cool"
const supply = await fetchEthereumSupply()
// flow
import { fetchFlowSupply } from "usdc.cool"
const supply = await fetchFlowSupply()
// Hedera
import { fetchHederaSupply } from "usdc.cool"
const supply = await fetchHederaSupply()
// Solana
import { fetchSolanaSupply } from "usdc.cool"
const supply = await fetchSolanaSupply()
// Stellar
import { fetchStellarSupply } from "usdc.cool"
const supply = await fetchStellarSupply()
// Tron
import { fetchTronSupply } from "usdc.cool"
const supply = await fetchTronSupply()

Brought to you by M2 Labs

M2 Labs

This project is maintained and funded by M2 Labs, a Web3 product development studio.