usdt total supply v2 temp

Get total supply of USDT crypto token. This API track initail supply, burnt supply and newly minted supply to calculate the total circulating supply of USDT token on Ethereum. It also returns name, symbol, total and balance.

By Nikhil · saved 7 July 2023 · run 25 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery($token: String!) {
  EVM(dataset: combined, network: eth) {
    burn: Transfers(
      where: {Transfer: {Currency: {SmartContract: {is: $token}}, Receiver: {is: "0x0000000000000000000000000000000000000000"}, Amount: {gt: "0"}}}
    ) {
      sum(of: Transfer_Amount)
    }
    mint: Transfers(
      where: {Transfer: {Currency: {SmartContract: {is: $token}}, Sender: {is: "0x0000000000000000000000000000000000000000"}, Amount: {gt: "0"}}}
    ) {
      sum(of: Transfer_Amount)
    }
    BalanceUpdates(
      where: {Currency: {SmartContract: {is: $token}}}
      limit: {count: 1}
    ) {
      Currency {
        Decimals
        Name
        Symbol
        ProtocolName
        SmartContract
        HasURI
        Fungible
      }
      ChainId
    }
  }
}

Variables

{
	"token": "0xdac17f958d2ee523a2206206994597c13d831ec7"
}

Similar queries