usdt balance history streaming api template

The query retrieves the balance history of USDT (Tether) tokens in a specific Ethereum wallet address. It searches for the wallet address provided and returns the balance history of USDT tokens held by that address.

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

What it returns

Filters

The query

query ( $token: String) {
  EVM(network: eth, dataset: combined) {
    BalanceUpdates(
      where: {Currency: {SmartContract: {is: $token}}, BalanceUpdate: {Address: {is: "0x0000000000000000000000000000000000000000"}}, Block: {Date: {after: "2023-06-01"}}}
      limit: {count: 10}
      orderBy: {descending: Block_Time}
    ) {
      Currency {
        Name
        Symbol
      }
      BalanceUpdate {
        Amount
      }
      Block {
        Date
        Time
      }
    }
  }
}

Variables

{
  "network": "eth",
  "token": "0xdAC17F958D2ee523a2206206994597C13D831ec7"
}

Similar queries