USDT_test
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
- currency name
- currency symbol
- balance update amount
- block date
- block time
Filters
- currency smart contract is 0xA0b8…eB48
- balance update address is 0x3fC9…7FAD
- block date after 2023-06-01
The query
query ($network: evm_network, $token_address: String) {
EVM(network: $network, dataset: combined) {
BalanceUpdates(
where: {Currency: {SmartContract: {is: $token_address}}, BalanceUpdate: {Address: {is: "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD"}}, 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_address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
}
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