BlockJuice loads token moves between Ethereum and two L2s into a Postgres you run: the Arbitrum token bridge and the OP Standard Bridge on Base. Each row of bridge_transfers is one deposit or withdrawal. bridge_pairs matches a withdrawal from one L2 with the deposit into another L2 it could have paid for.
Coverage
Each source reads only the tokens you list, except for Arbitrum withdrawals. List each token by its Ethereum address for Arbitrum and by its Base address for Base. The Arbitrum withdrawal event does not index its token, so bridge_transfers holds every withdrawal through the Arbitrum token bridge, of every token. Amounts are in the token’s base units. A pair needs the same Ethereum address, token and amount, after the withdrawal chain’s finality delay. The match uses amount and timing only and does not read the Ethereum leg, so a pair is a candidate, not proof.
One 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.
The bridges pipeline builds both from the stream sources arbitrum-token-bridge and evm-op-standard-bridge.
analytics.bridge_transfers
chain
text
arbitrum or base, the L2 the move was read on.
id
text
The log's place on its chain, <block>:<logIndex>. Unique with chain.
direction
text
to_ethereum for a withdrawal, from_ethereum for a deposit.
l2_address
text
The address on the L2 side.
ethereum_address
text
The address on the Ethereum side.
ethereum_token
text
The token's address on Ethereum.
l2_token
text
The token's address on the L2.
amount
numeric
The amount in the token's base units.
block_number
bigint
The block the move was in.
block_timestamp
timestamptz
When that block was produced.
tx_hash
text
The transaction the log was in.
log_index
integer
The log's position in the block.
analytics.bridge_pairs
from_chain
text
The L2 the withdrawal left.
from_address
text
The address it left from.
ethereum_address
text
The Ethereum address both legs share.
to_chain
text
The L2 the deposit reached.
to_address
text
The address it reached.
ethereum_token
text
The Ethereum token both legs share.
amount
numeric
The amount both legs share, in base units.
withdrawal_id
text
The withdrawal's id in bridge_transfers.
withdrawn_at
timestamptz
When the withdrawal was made.
withdrawal_tx_hash
text
The withdrawal's transaction.
deposit_id
text
The deposit's id in bridge_transfers.
deposited_at
timestamptz
When the deposit was made.
deposit_tx_hash
text
The deposit's transaction.
candidates
bigint
How many withdrawals could have paid for the deposit.
Query it
select chain, block_timestamp, l2_address, ethereum_address, ethereum_token, amount
from analytics.bridge_transfers
where direction = 'to_ethereum'
order by block_timestamp desc
limit 20
Each row is one withdrawal from Arbitrum or Base to Ethereum, in the token’s base units.
select from_chain, to_chain, ethereum_address, ethereum_token, amount, withdrawn_at, deposited_at
from analytics.bridge_pairs
where candidates = 1
order by deposited_at desc
limit 20
Each row is a withdrawal from one L2 matched to a deposit into another. candidates = 1 keeps the deposits only one withdrawal could have paid for.
Load it
The bridges pipeline builds every table on this page.
uv run --project orchestration bj run bridges
List the wallets, tokens, feeds and contracts you follow in each source’s addresses.json.
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>.