EVM data
BlockJuice loads data from four EVM chains into a Postgres you run: Ethereum, Arbitrum, Base and Polygon. A table that spans chains has a chain column, so one query can compare a transfer on Base with a transfer on Ethereum.
Coverage
Coverage differs by chain. Ethereum has the most tables. Arbitrum and Base add bridges and labels. Polygon has Polymarket only. To follow another EVM chain, copy a source with bj new-source.
- Modules
- 11
- Tables
- 21
- Columns
- 211
Balances
ETHSOLBTCEach 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.
- analytics.latest_balancesOne row per chain, wallet and asset.6 columns
uv run --project orchestration bj run balancesTransfers
ETHARBBASEEvery ERC-20 transfer of the tokens you list, or only those into or out of your wallets. One row per Transfer log, in the token's base units. classified_transfers adds what kind of address each side is and sorts the transfer into a category: bridge, exchange, contract, p2p or unknown. Covers Ethereum, Arbitrum and Base. Classification reads labels, which cover Arbitrum and Base.
- analytics.erc20_transfers10 columns
- analytics.classified_transfers19 columns
- analytics.labelled_wallet_flowsOne row per value movement that touches a wallet in
seeds/, seen from the labelled entity's side.10 columnswallet_labels
uv run --project orchestration bj run transfersDEX trades
ETHOne Uniswap swap: the token the swapper received and the token they paid, in each token's base units, with no decimals or prices applied. One row per Swap log. Covers Uniswap v2, v3 and v4 on Ethereum, for the pools that trade the tokens you list.
- analytics.dex_tradesOne row per Swap log.17 columns
uv run --project orchestration bj run dexBridges
ARBBASEOne token move between an L2 and Ethereum through the chain's own bridge, in the token's base units. direction is to_ethereum for a withdrawal and from_ethereum for a deposit. bridge_pairs matches a withdrawal from one L2 with the deposit into another L2 it could have paid for: the same Ethereum address, token and amount, after the withdrawal chain's finality delay. The match uses amount and timing only. It does not read the Ethereum leg, which would prove it. Covers the Arbitrum token bridge and the OP Standard Bridge on Base, for the Ethereum tokens you list.
- analytics.bridge_transfers12 columns
- analytics.bridge_pairs14 columns
uv run --project orchestration bj run bridgesLabels
ARBBASEWhat kind of address each listed address is: exchange when the seed names it, contract when it has code, else eoa, which includes EIP-7702 delegations. One row per chain and address, with the exchange that owns it when one does. Covers Arbitrum and Base.
- analytics.address_labelsOne row per chain and address, with the exchange that owns it when one does.7 columns
uv run --project orchestration bj run labelsTokens
ETHARBBASEEach listed token's latest name, symbol and decimals. One row per chain and token. Symbols repeat, so key on chain and token. A null decimals means the contract has none, so never assume 18. Covers ERC-20 tokens on Ethereum, Arbitrum and Base.
- analytics.tokensOne row per chain and token.6 columns
uv run --project orchestration bj run tokensOracle prices
ETHARBBASEOne round of one Chainlink price feed: the answer scaled by the feed's decimals into a price in quote units, with the round id the feed's proxy reports. One row per round. Covers Chainlink feeds on Ethereum, Arbitrum and Base, for the aggregators you list.
- analytics.oracle_pricesOne row per round.17 columns
uv run --project orchestration bj run pricesPolymarket
POLPolymarket's prediction markets on Polygon. A market is one condition in ConditionalTokens, with one outcome token per outcome. Once the market resolves, a share of each outcome redeems for that outcome's payout fraction in pUSD. Amounts are whole pUSD and whole shares, not base units. The addresses.json files list Polymarket's own contracts, so the tables cover every market, from the block the stream sources start at. A market prepared before that block has history_complete false, and its trades, candles and PnL miss what came before.
- analytics.polymarket_marketsOne row per market.14 columns
- analytics.polymarket_tradesOne row per fill of a maker order.17 columns
- analytics.polymarket_wallet_fillsOne row per fill per wallet: every OrderFilled, read for the wallet whose pUSD or shares moved, with its role in the match.13 columns
- analytics.polymarket_price_candlesOne row per outcome token and minute, in pUSD per share.11 columns
- analytics.polymarket_market_participantsOne row per market and wallet: every wallet that traded, split, merged, redeemed or converted in the market.14 columns
uv run --project orchestration bj run polymarketAccounts
ETHThe wallets you follow on Ethereum. wallet_transactions holds each top-level transaction sent from or to them, in wei; internal transfers, which only traces show, are not here. wallet_eth_outflows takes each successful one with value and gives it one class: sold (a CoW Protocol ETH Flow order that settled into a stablecoin back to the sender), sent_to_exchange (to an address in seeds/) or sent_out. account_states holds each address's balance, nonce and code at the blocks a source read it. address_attributions lists the addresses a public body ties to an incident, from seeds/.
- analytics.wallet_transactions
- analytics.wallet_eth_outflows
- analytics.account_states
- analytics.address_attributions
uv run --project orchestration bj run accountsDeployments
ETHOne contract-deployment transaction per row on Ethereum: a successful transaction with at least one create or create2 that stood. state_gas is the EIP-8037 state gas its creates and new storage slots would cost, as a lower bound, and rule_version names the rule. The deployments pipeline builds it from the source evm-contract-deployments.
- analytics.deployment_state_gas7 columns
uv run --project orchestration bj run deploymentsCoW ETH Flow
ETHOne CoW Protocol ETH Flow order placed by a wallet you follow on Ethereum, with the settlement that filled it when one did. Amounts are in token base units; the ETH sent is in wei. An order is settled when a later GPv2Settlement Trade carries its UID. An order with no such Trade may be open, expired, refunded or invalidated; this table does not tell them apart. The cow pipeline builds it from the source evm-cow-ethflow.
- analytics.cow_ethflow_orders7 columns
uv run --project orchestration bj run cowQuery it
select chain, block_timestamp, tx_hash, token, from_address, to_address, value
from analytics.erc20_transfers
order by block_timestamp desc
limit 20Each row is one ERC-20 Transfer log on Ethereum, Arbitrum or Base, in the token’s base units.
Load it
- List the wallets, tokens, feeds and contracts you follow in each source’s addresses.json. Polymarket needs no list. To follow some wallets only, list them in each Polygon source’s addresses.json. Deployments needs no list. It loads every contract creation from the block it starts at.
- 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. - Query the analytics schema in your Postgres with SQL, or ask in plain language with /bj <question>.