USDT Balance API Subscription

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

By gaurav · saved 7 July 2023 · run 1 time · Bitquery API v2

What it returns

Filters

The subscription

# This API provides balance updates of 
# an ethereum address for given token
# Please change the token or address accordingly

subscription ($token: String) {
  EVM(network: eth) {
    BalanceUpdates(
      where: {Currency: {SmartContract: {is: $token}}, BalanceUpdate: {Address: {is: "0x28c6c06298d514db089934071355e5743bf21d60"}}}
    ) {
      BalanceUpdate{
        Amount
      }
      Currency {
        Name
        Symbol
      }
    }
  }
}

Variables

{
  "token": "0xdAC17F958D2ee523a2206206994597C13D831ec7"
}

Similar queries