total tips received by a validator in last 24 hrs bsc
Historical data This query uses the realtime dataset (the default), which holds only a recent window - hours to days depending on the cube. For older data add a dataset to the top-level element: EVM(network: bsc, dataset: combined) archive full history combined archive + realtime in one result Ar
What it returns
- token balance address
- balance change reason code
- currency name
- currency symbol
- smart contract
- 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
Filters
- token balance address is 0xVali…Here
- token balance balance change reason code is 5
The query
# Historical data
# This query uses the realtime dataset (the default), which holds only a
# recent window - hours to days depending on the cube.
#
# For older data add a dataset to the top-level element:
#
# EVM(network: bsc, dataset: combined)
#
# archive full history
# combined archive + realtime in one result
#
# Archive and combined need the historical data add-on:
# https://bitquery.io/pricing
#
# Datasets: https://docs.bitquery.io/docs/graphql/dataset/archive/
# Retention: https://docs.bitquery.io/docs/graphql/data-coverage-retention/
#
query MyQuery {
EVM(network: bsc, dataset: realtime) {
TransactionBalances(
where: {TokenBalance: {BalanceChangeReasonCode: {eq: 5}, Address: {is: "0xValidatorAddressHere"}}, Block: {Time: {since_relative: {hours_ago: 24}}}}
) {
TokenBalance {
Address
BalanceChangeReasonCode
Currency {
Name
Symbol
SmartContract
}
}
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
}
}
}
Similar queries
- XXtop 10 holders percentage · BNB Chain · TransactionBalances
- latest balance across address · BNB Chain · TransactionBalances
- Transaction balances · BNB Chain · TransactionBalances
- Self-Destruct Balance Increase API bsc · BNB Chain · TransactionBalances
- Self-Destruct Balance Decrease API bsc · BNB Chain · TransactionBalances