Catalog · Tokens

ERC-20 token metadata

BlockJuice calls name(), symbol() and decimals() on each ERC-20 token you list on Ethereum, Arbitrum and Base, and loads the latest replies into a Postgres you run. Join it to transfers, balances and trades to turn base units into token amounts.

Coverage

The source reads only the tokens you list, so the table holds those tokens. Symbols repeat, so key on chain and token. A null decimals means the contract has none, so never assume 18. A null name or symbol means the call reverted.

EthereumArbitrumBase

Tables
01
Columns
6

Tables

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

The tokens pipeline builds it from the call source evm-erc20-metadata.

analytics.tokens

GrainOne row per chain and token.

chain
text
ethereum, arbitrum or base.
token
text
The token's contract address, lowercased.
name
text
What name() returned, with a bytes32 reply decoded. Null when the call reverted.
symbol
text
What symbol() returned, decoded like name. Null when the call reverted.
decimals
integer
What decimals() returned. Null when the contract has none.
block_number
bigint
The block the reading was taken at.

Query it

select chain, token, name, symbol, decimals
from analytics.tokens
order by chain, symbol
limit 20

Each row is one listed token’s latest name, symbol and decimals.

select chain, token, symbol
from analytics.tokens
where decimals is null
order by chain
limit 20

Each row is one listed token whose contract has no decimals. Don’t scale its amounts by 18.

Load it

The tokens pipeline builds the table on this page.

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