Balance Updates for transfer in last 24 hours 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
- block time
- pre balance
- post balance
- pre balance in USD
- post balance in USD
- from
- to
- transaction hash
- calculate
Filters
- token balance address is 0xYourAddressInput
- token balance balance change reason code is 10
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) {
TransactionBalances(
where: {TokenBalance: {BalanceChangeReasonCode: {eq: 10}, Address: {is: "0xYourAddressInput"}}, Block: {Time: {since_relative: {hours_ago: 24}}}}
orderBy: {descending: Block_Time}
) {
Block {
Time
}
TokenBalance {
PreBalance
PostBalance
PreBalanceInUSD
PostBalanceInUSD
}
Transaction {
From
To
Hash
}
transfer_amount: calculate(
expression: "$TokenBalance_PostBalance - $TokenBalance_PreBalance"
)
transfer_amount_usd: calculate(
expression: "$TokenBalance_PostBalanceInUSD - $TokenBalance_PreBalanceInUSD"
)
}
}
}
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