Skip to main content

BSC Balance Updates API

In thise section we will see how to monitor real-time balance changes across the BSC blockchain.

Subscribe to Balance Updates of a Particular Wallet

The query will subscribe you to real-time updates for balance changes on the BSC blockchain, providing a continuous stream of data as new transactions are processed and recorded. Here we have used address 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c. You can find the query here

subscription {
EVM(network: bsc) {
BalanceUpdates(
where: {BalanceUpdate: {Address: {is: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}}}
) {
Currency {
Name
}
BalanceUpdate {
Address
Amount
Type
}
Block {
Time
}
}
}
}

Get Top Holders of a Token

This query gets the top holders of a token filtered using Currency: { SmartContract: { is: filter.

You can run the query here


{
EVM(network: bsc, aggregates: yes, dataset: combined) {
BalanceUpdates(
orderBy: { descendingByField: "balance" }
limit: { count: 50 }
where: {
Currency: { SmartContract: { is: "0xdaf1695c41327b61b9b9965ac6a5843a3198cf07" } }
}
) {
BalanceUpdate {
Address
}
balance: sum(of: BalanceUpdate_Amount, selectWhere: { gt: "0" })
}
}
}