USDT Balance API V2

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

By Nikhil · saved 4 July 2023 · run 8 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $token_address: String, $wallet_address: String) {
  EVM(network: $network, dataset: combined) {
    BalanceUpdates(
      where: {
        Currency: {
          SmartContract: {
            is: $token_address
          }
        }, 
        BalanceUpdate: {
          Address: {
            is: $wallet_address
          }
        }
      }
    ) {
      sum(of: BalanceUpdate_Amount)
      Currency {
        Name
        Symbol
      }
    }
  }
}

Variables

{
  "network": "eth",
  "wallet_address": "0x06d3a30cBb00660B85a30988D197B1c282c6dCB6",
  "token_address": "0xdAC17F958D2ee523a2206206994597C13D831ec7"
}

Similar queries