USDT Token holder Subscription Template

Streams 10 balance updates on Ethereum as they happen, where currency smart contract is 0xdac1…1ec7, sorted by balance, highest first: balance update address and sum of balance update amount.

By Divyasshree N · saved 6 July 2023 · run 1 time · Bitquery API v2

What it returns

Filters

The subscription

subscription myquery($token:String!){
  EVM(network: eth) {
    BalanceUpdates(
      limit: {count: 10}
      orderBy: {descendingByField: "balance"}
      where: {Currency: {SmartContract: {is: $token}}}
    ) {
      BalanceUpdate {
        Address
      }
      balance: sum(of: BalanceUpdate_Amount)
    }
  }
}

Variables

{
  "token":"0xdac17f958d2ee523a2206206994597c13d831ec7"
}

Similar queries