Skip to main content
Sample query: Fetch the daily balance of a wallet over time.
select * from bitcoin.assets.balances_daily
where address = '34xp4vRoCGJym3xR7yCVPFHoCNxv4Twseo'
order by date desc
Table Columns Unique Key: date, address
Unique KeyDescription
dateDate of the balance.
addressAddress of the account.
raw_balance_strString of balance of tokens
raw_balanceBalance of tokens (unnormalized)
balance_strBalance of this token, normalized by the decimal points defined in the token contract.
balanceBalance of the token, normalized by the decimal points defined by BTC protocol in sats. One sat = 1e-8 btc
usd_balanceThe amount of tokens, in $USD at the current time.
usd_exchange_rateThe exchange rate used to calculate the usd_value at current time.
last_activity_block_timestampTimestamp of the last activity block.
last_activity_block_numberNumber of the last activity block.
last_activity_block_hashHash of the last activity block.
last_activity_transaction_hashHash of the last activity transaction.
last_activity_transaction_indexIndex of the last activity transaction.
_created_atTimestamp of the balance entry creation.
_updated_atTimestamp of the balance entry update.