getTokenSupply

Returns transfers on BNB Chain, where currency smart contract is 0x55d3…7955 and block time till 2024-10-28: sum of transfer amount.

By Jose · saved 28 October 2024 · Bitquery API v2

What it returns

Filters

The query

query getTokenSupply(
  $dataset: dataset_arg_enum!
  $network: evm_network!
  $tokenAddress: String!
  $till: DateTime!
) {
  EVM(dataset: $dataset, network: $network) {
    Transfers(
      where: {Block: {Time: {till: $till}}, Transfer: {Currency: {SmartContract: {is: $tokenAddress}}, Success: true}}
    ) {
      minted: sum(
        of: Transfer_Amount
        if: {Transfer: {Sender: {is: "0x0000000000000000000000000000000000000000"}}}
      )
      burned: sum(
        of: Transfer_Amount
        if: {Transfer: {Receiver: {in: ["0x0000000000000000000000000000000000000000", "0x000000000000000000000000000000000000dead"]}}}
      )
    }
  }
}

Variables

{
  "network": "bsc",
  "dataset": "combined",
  "tokenAddress": "0x55d398326f99059ff775485246999027b3197955",
  "till": "2024-10-28T14:29:29.642Z"
}

Similar queries