Pinax Logo/Datasets
BNB Smart ChainBalance Changes

Column Descriptions

for bsc.balance_changes

13 rows
NameTypeDescription
reason_codeNUMBER
new_balanceNUMBER
block_dateDATE
new_balance_hexTEXT
tx_hashTEXT
block_hashTEXT
old_balanceNUMBER
block_numberNUMBER
ordinalNUMBER
addressTEXT
block_timeTIMESTAMP_NTZ
reasonTEXT
old_balance_hexTEXT

Sample Queries

Calculate Daily ETH Balance Change for an Address
Calculates the net change in ETH balance for a specific address per day. The result is returned in Ether instead of Wei.
SELECT
  block_date,
  SUM(new_balance - old_balance) / 1e18 AS daily_balance_change_ether
FROM
  bsc.balance_changes
WHERE
  address = '0x742d35Cc6634C0532925a3b844Bc454e4438f44e'
GROUP BY
  block_date
ORDER BY
  block_date;
Find Largest Balance Increases
Identifies the top 10 largest balance increases for any address, showing the old and new balances, and the reason. The result is returned in Ether instead of Wei.
SELECT
  address,
  (old_balance / 1e18) as old_balance_ether,
  (new_balance / 1e18) as new_balance_ether,
  reason
FROM
  bsc.balance_changes
ORDER BY
  (new_balance - old_balance) DESC
LIMIT
  10;
Transaction Hashes with Fee Balance Changes
Retrieves the transaction hashes associated with balance changes where the reason is 'Fee'.
SELECT DISTINCT
  tx_hash
FROM
  bsc.balance_changes
WHERE
  reason = 'Fee';