Guide · 4 sections

Blockchain ETL vs ELT

Both move chain data into a warehouse. They differ in where the transform runs. That choice decides whether you can fix a rule without reading the chain again, and whether you can trace a number back to the rows it came from.

What blockchain ETL means

ETL stands for extract, transform, load. A blockchain ETL pipeline extracts blocks, transactions, logs and balances from a node or an API. It transforms them in the pipeline’s own code: it decodes events, joins tables, and applies decimals and prices. Then it loads the finished tables into a warehouse.

The warehouse holds only what the transform kept. If a rule was wrong, or a question needs a field the transform dropped, you extract the data again.

What ELT changes

ELT stands for extract, load, transform. The pipeline loads each row as it read it, before any rule touches it. The transform runs later, inside the warehouse, as SQL.

The raw rows stay. A model is a query over them, so you can read it, change it and run it again. To fix a rule you edit the SQL and rebuild the table. You fetch nothing twice.

Why the order matters for chain data

The rules change and the chain does not. What counts as a swap, which side of a trade counts as volume and how many decimals a token has are choices, and analysts revise them. A final block stays the same. ELT fetches the part that stays the same once, and keeps the choices in SQL.

A number also has to be defended. When a client or an auditor asks how you got it, you show them the model that built it and the raw rows under the model.

How BlockJuice does each step

BlockJuice is ELT. Sources only load. Every join, sign rule, unit and price lives in dbt SQL, so you fix a wrong rule and rebuild without fetching anything again.

  1. 01 / 05Extract + loadTypeScript sourcesingestion/

    Read chains, APIs and SQD Portal; write raw JSON rows into raw.<chain>_<table>, such as raw.ethereum_uniswap_v3.

  2. 02 / 05StorePostgresinfra/postgres/

    Your warehouse. Raw rows, marts and the ops.* run log.

  3. 03 / 05Transformdbttransformation/

    Staging views, then mart tables in the analytics schema.

  4. 04 / 05OrchestrateDagsterorchestration/

    One job per pipeline. Turn on its schedule and it rebuilds each day at 06:00 UTC.

  5. 05 / 05WatchPrometheus + Grafanainfra/

    Ingestion and dbt side by side.

BlockJuice keeps a failed call as a dead letter and retries it on the next run. Each answer checks its inputs for dead letters, stale runs and gaps in coverage before it gives a value.

ETL and ELT side by side

ETLELT
Where the transform runsIn the pipeline’s code, before the load.In the warehouse, as SQL, after the load.
What the warehouse keepsThe finished tables.The raw rows, and every table built from them.
To fix a wrong ruleChange the code and extract again.Change the SQL and rebuild.
To trace a numberRead the pipeline’s code. The inputs are gone.Follow the table back to its raw rows.

Try it

The demo builds the real balance models from made-up rows in a throwaway Postgres, answers a saved question and checks the answer. It needs uv and Docker, and no keys.

git clone https://github.com/iankressin/block-juice
cd block-juice
uv run --project orchestration bj demo

Blockchain data by chain →The full catalog →Blockchain data glossary →Get started →