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.
What it returns
- sum of balance update amount
- currency name
- currency symbol
Filters
- currency smart contract is 0xdAC1…1ec7
- balance update address is 0x28c6…1d60
The query
# query returns ERC20 Token Balance for any address
# $token is address of the ERC20
query ($token: String) {
EVM(network: eth, dataset: combined) {
BalanceUpdates(
where: {
Currency: {
SmartContract: {
is: $token
}
},
BalanceUpdate: {
Address: {
is: "0x28c6c06298d514db089934071355e5743bf21d60"
}
}
}
) {
sum(of: BalanceUpdate_Amount)
Currency {
Name
Symbol
}
}
}
}
Variables
{
"token": "0xdAC17F958D2ee523a2206206994597C13D831ec7"
}
Similar queries
- eth balance · Ethereum · BalanceUpdates
- Ethereum balance view · Ethereum · BalanceUpdates
- Balance update API explanation · Ethereum · BalanceUpdates
- MyQuery EVM · BNB Chain · BalanceUpdates
- usdt_holder_balance_update_ · Ethereum · BalanceUpdates