Catalog · Transfers

ERC-20 transfer data

BlockJuice loads ERC-20 transfers on Ethereum, Arbitrum and Base into a Postgres you run: every transfer of the tokens you list, or only those into or out of your wallets. Three tables build on each other. erc20_transfers holds each Transfer log, classified_transfers sorts each one into a category, and labelled_wallet_flows follows the wallets you label.

Coverage

The source reads only the tokens and wallets you list, so the tables cover the tokens you follow, not the whole chain. Amounts are in the token’s base units. Classification reads address labels, which cover Arbitrum and Base only. labelled_wallet_flows counts only wallets in seeds/wallet_labels, and a movement between two labelled entities comes once for each.

EthereumArbitrumBase

Tables
03
Columns
39

Tables

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

The transfers pipeline builds both from the stream source evm-erc20-transfers, which reads Portal.

analytics.erc20_transfers

chain
text
ethereum, arbitrum or base.
id
text
The log's place on its chain, <block>:<logIndex>. Unique with chain.
block_number
bigint
The block the transfer 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.
token
text
The token's contract address, lowercased.
from_address
text
The sender, lowercased.
to_address
text
The receiver, lowercased.
value
numeric
The amount in the token's base units.

analytics.classified_transfers

Every column of erc20_transfers, and these:

from_kind
text
exchange, deposit, contract, eoa, bridge or unknown.
from_exchange
text
The exchange behind an exchange or deposit address. Else null.
from_entity
text
The exchange, bridge:<chain>, or the address itself.
from_group
text
The kind, with a deposit address counted as exchange.
to_kind
text
As from_kind, for the receiver.
to_exchange
text
As from_exchange, for the receiver.
to_entity
text
As from_entity, for the receiver.
to_group
text
As from_group, for the receiver.
category
text
bridge, exchange, contract, p2p or unknown.

analytics.labelled_wallet_flows

GrainOne row per value movement that touches a wallet in seeds/wallet_labels, seen from the labelled entity's side.

A movement is a successful top-level transaction with value from wallet_transactions (asset native, value in wei) or an ERC-20 Transfer from erc20_transfers (asset is the token's address). A movement between two entities comes once for each.

chain
text
The chain the movement was on.
id
text
The movement's id in its mart: tx:<hash> or <block>:<logIndex>. Unique with chain and entity.
block_number
bigint
The block the movement was in.
asset
text
native, or the token's address.
value
numeric
The amount, in wei or the token's base units.
entity
text
The labelled entity.
wallet
text
The entity's side of the movement, the sender for intra.
direction
text
inflow, outflow or intra.
counterparty_address
text
The other side.
counterparty_entity
text
The other side's entity; null when it has no label, or for intra.

Query it

select chain, block_timestamp, token, from_entity, to_entity, value
from analytics.classified_transfers
where category = 'exchange'
order by block_timestamp desc
limit 20

Each row is one ERC-20 transfer in the exchange category, in the token’s base units. from_entity and to_entity name each side.

select entity, wallet, asset, value, counterparty_address, counterparty_entity
from analytics.labelled_wallet_flows
where direction = 'outflow'
order by block_number desc
limit 20

Each row is one movement out of a labelled entity’s wallet. value is in wei when asset is native, else in the token’s base units.

Load it

The transfers pipeline builds every table on this page.

uv run --project orchestration bj run transfers
  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>.