tax monitoring query
Returns transaction balances on Ethereum, where token balance address is 0x4838…5f97, 0xdadb…3711 or 3 more and token balance balance change reason code is 5, sorted by block date: token balance address, balance change reason code, currency name, currency symbol, sum of token balance post balance, sum of token balance post balance in USD, sum of token balance pre balance and 4 more fields.
What it returns
- token balance address
- balance change reason code
- currency name
- currency symbol
- sum of token balance post balance
- sum of token balance post balance in USD
- sum of token balance pre balance
- sum of token balance pre balance in USD
- calculate
- count
- block date
Filters
- token balance address is 0x4838…5f97, 0xdadb…3711 or 3 more
- token balance balance change reason code is 5
The query
query MyQuery {
EVM(network: eth, dataset: realtime) {
TransactionBalances(
orderBy: {ascending: Block_Date}
where: {
TokenBalance: {
BalanceChangeReasonCode: {eq: 5},
Address: {in: [
"0x4838b106fce9647bdf1e7877bf73ce8b0bad5f97",
"0xdadb0d80178819f2319190d340ce9a924f783711",
"0x396343362be2a4da1ce0c1c210945346fb82aa49",
"0x6adb3bab5730852eb53987ea89d8e8f16393c200",
"0x95222290dd7278aa3ddd389cc1e1d165cc4bafe5"
]}},
Block: {Time: {since_relative: {months_ago: 3}}}}
) {
TokenBalance {
Address
BalanceChangeReasonCode
Currency {
Name
Symbol
}
}
Post: sum(of: TokenBalance_PostBalance)
Post_USD: sum(of: TokenBalance_PostBalanceInUSD)
Pre: sum(of: TokenBalance_PreBalance)
Pre_USD: sum(of: TokenBalance_PreBalanceInUSD)
Total_tip_native: calculate(expression: "$Post - $Pre")
Total_tip_usd: calculate(expression: "$Post_USD - $Pre_USD")
number_of_tips: count
Block {
Date
}
}
}
}
Similar queries
- latest token supply on USDT and USDC on ethereum chain · Ethereum · TransactionBalances
- Get Token Total Supply and Market Cap · Ethereum · TransactionBalances
- latest token supply of all active tokens on ETH chain · Ethereum · TransactionBalances
- Transaction balances · Ethereum · TransactionBalances
- All MEV Builders Tx Balance Tracker · Ethereum · TransactionBalances