Catalog · Balances

Wallet balance data for Ethereum, Solana and Bitcoin

BlockJuice reads the latest balance of each wallet you list and loads it into a Postgres you run. One table holds ETH and ERC-20 tokens on Ethereum, SOL and SPL tokens on Solana, and BTC on Bitcoin, so one query can span all three chains.

Coverage

Each source reads only the wallets and tokens you list, so the table covers the wallets you follow, not every holder. It keeps one row per chain, wallet and asset: the latest balance, read at the block or Solana slot in block_number. Amounts are in the asset’s base units: wei, lamports, satoshis or token units.

EthereumSolanaBitcoin

Tables
01
Columns
6

Tables

Each wallet's latest balance of each asset, in the asset's base units: wei, lamports, satoshis or token units. One row per chain, wallet and asset. Covers ETH and ERC-20 on Ethereum, SOL and SPL on Solana, and BTC on Bitcoin.

The balances pipeline builds it from five call sources: evm-eth-balances, evm-erc20-balances, solana-sol-balances, solana-spl-balances and bitcoin-btc-balances.

analytics.latest_balances

GrainOne row per chain, wallet and asset.

chain
text
ethereum, solana or bitcoin.
wallet
text
The address whose balance was read.
asset_type
text
native, erc20 or spl.
asset
text
eth, sol or btc, or the token or mint address.
block_number
bigint
The block, or Solana slot, the balance was read at.
balance
numeric
The amount in the asset's base units.

Query it

select chain, wallet, asset, balance, block_number
from analytics.latest_balances
where asset_type = 'native'
order by chain, wallet
limit 20

Each row is one wallet’s latest ETH, SOL or BTC balance, in wei, lamports or satoshis.

select wallet, asset, balance, block_number
from analytics.latest_balances
where chain = 'ethereum' and asset_type = 'erc20'
order by asset, balance desc
limit 20

Each row is one wallet’s latest balance of one ERC-20 token, in the token’s base units. asset is the token’s address.

Load it

The balances pipeline builds the table on this page.

uv run --project orchestration bj run balances
  1. List the wallets, tokens, feeds and contracts you follow in each source’s addresses.json.
  2. Build the tables with bj run <pipeline>, or turn on the pipeline’s schedule in Dagster to rebuild them each day at 06:00 UTC.
  3. Query the analytics schema in your Postgres with SQL, or ask in plain language with /bj <question>.