← All chains
Chains · SOL

Solana data

BlockJuice loads Solana balances into a Postgres you run. It reads the latest SOL and SPL token balance of each wallet you list. dbt builds them into one table you query with SQL, next to your Ethereum and Bitcoin balances.

Coverage

Balances are the only Solana data BlockJuice loads today. Amounts are in base units: lamports for SOL, token units for an SPL mint. To cover another wallet list or protocol, copy a source with bj new-source and add its models in dbt.

Modules
01
Tables
01
Columns
6

Balances

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.

uv run --project orchestration bj run balances

Wallet balance data for Ethereum, Solana and Bitcoin →

Query it

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

Each row is one wallet’s latest balance of SOL or of one SPL mint. block_number is the Solana slot the balance was read at.

Load it

  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>.