canonlake: reorg-safe EVM chain data in Delta Lake
Pending work Status: pending. This is work in progress at DataBlock. It is not released yet.
What it is
canonlake is a design for a Rust command-line tool that writes EVM chain data into Delta Lake tables in the user's own storage. The first version would cover Ethereum and Base mainnet: blocks, transactions with receipt fields, and logs. Arbitrum One and OP Mainnet would follow.
The tool makes two promises. The final tables never hold a row from an orphaned block. A rerun over the same range gives the same table. Spark, Databricks, DuckDB and Trino read the tables. Only canonlake writes them.
The problem
- The standard extractor has stalled at the release level. cryo has no GitHub release after 0.2.0 on 2023-08-15. Its reorg-buffer bug (#193) is open since 2024-06-06. The only Delta item is #85, "Keep eyes on Delta", open since 2023-10-20. cryo writes plain files.
- Reorg rollback fails in real sinks. In Envio #1512, a ClickHouse rollback crashed production indexers: "Restart doesn't help". The Substreams SQL sink's ClickHouse driver "does not support reorg handling" (#96). A question on reorgs in ethereum-etl has no answer (#375).
- No open-source tool was found that writes reorg-safe EVM data to Delta or Iceberg. The search covered cryo, Ponder, Reth, HyperIndex and the Substreams sinks. This is an absence, and no one has asked for it by name.
- Hosted datasets move. Google's
goog-blockchain.*listings "are deprecated and stop receiving updates after October 31, 2026" (Google Cloud). Google offers replacement datasets, so the data stays available, but queries on the old listings must change. Base is in neither list. - The Rust parts are ready.
deltalake1.1.2 commits to S3 with conditional writes and needs no DynamoDB lock (delta-rs #4482).
Architecture
canonlake runs two lanes against a JSON-RPC provider. The final lane loads block ranges at or below the chain's finalized block. The head lane follows new heads and writes a small tail table. Generated views join the final rows and the tail rows.
JSON-RPC provider (HTTP + WebSocket)
| |
v v
+--------------+ +------------------+
| final lane | | head lane |
| ranges <= F | | newHeads, parent |
| lease: final | | hash walk |
| | | lease: tail |
+------+-------+ +--------+---------+
v v
+--------------------------------------------------+
| range builder + canon check |
| hash chain, logs bloom, counts, dedupe |
+------------+-----------------------+-------------+
v v
+-----------------------+ +-----------------------+
| final committer | | tail committer |
| txs, logs -> blocks | | add -> flip -> clean |
| -> ledger -> state(W) | | |
+-----------+-----------+ +-----------+-----------+
v v
final tables + _canon_* tail tables
(rows <= W never change) (rewritten on reorg)
\ /
v v
generated views for Spark, Databricks,
DuckDB and Trino (readers only)
F = finalized block. W = top of the watermark.
Design rules:
- Keys include the block hash. A row is valid only if its block hash is canonical at its height. Tail rows reach the final tables only through a verified hash chain or a refetch.
- Whole ranges in one commit. The final lane replaces a whole block range in one commit and then moves the watermark. A rerun gives the same table.
- Canon check before every commit. It checks parent links, the block hash on every receipt and log, the receipt count, and a logs bloom recomputed against the header.
- Tail rewrite order is add, flip, clean. Between any two commits, each visible block has all its transactions and logs.
- Finality is set per chain in config, with a written reason. Ethereum uses the
finalizedtag (about 13 minutes). Base and OP use an L1-derived tag (OP docs say about 15 to 30 minutes). The tool refuses a tag that is missing, zero, stale or equal tolatest. - Deep reorgs stop the writer. A reorg deeper than a set limit, or one at or below the watermark, halts the writer and raises an alert. The tool does not repair final tables on its own.
- Other engines only read. Register the tables as external. Run compaction and vacuum
only through
canonlake maintain.
| Component | Choice | Licence |
|---|---|---|
| RPC, block tags, new heads | alloy | MIT OR Apache-2.0 |
| Delta commits, S3 conditional writes | deltalake (delta-rs) | Apache-2.0 |
| Record batches | arrow, parquet | Apache-2.0 |
| Lease objects | object_store | MIT OR Apache-2.0 |
| Predicate delete and merge | datafusion, through delta-rs | Apache-2.0 |
| Iceberg writer (deferred) | iceberg | Apache-2.0 |
| Runtime, CLI, logs, property tests | tokio, clap, tracing, proptest | MIT OR Apache-2.0 |
A verify command checks the tables against the chain.
Who it is for
- Data teams at protocols, funds, market makers and exchanges that use Databricks, Spark or Trino and want chain data next to their other tables.
- cryo users who need a table format, head reorg handling or a maintained release.
- Teams that move off hosted datasets such as the
goog-blockchain.*listings. - Indexer authors who want a tested reference for reorg-safe writes.
The note on an on-chain analytics lakehouse shows where this layer sits. DataBlock does this kind of build under data platform engineering and Web3 data.
Business opportunity
Exchanges, data vendors and funds want chain data next to their other tables in Databricks, Spark or Trino. If a pipeline keeps a row from an orphaned block, every balance, fee and flow built on that row is wrong. Teams that read Google's hosted chain listings must also change their queries, because those listings stopped receiving updates after 2026-10-31.
Buyer segments, from public job posts read on 2026-10-30:
- Exchanges and custodians with a data platform on Databricks, Spark or Snowflake.
- Data vendors, analytics and compliance firms that run their own lakehouse over many chains.
- Funds and market makers that keep research data in Iceberg or Delta.
- Teams on deprecated hosted data, such as readers of the
goog-blockchain.*listings. Their names are not public.
| Company | Segment | What the public post says | Date |
|---|---|---|---|
| Alchemy | 2 | "Handle reorganizations, retries, duplicate events, and historical backfills"; "EVM logs and traces, finality" | 2026-10-13 |
| Coinbase | 1 | Indexing "across major blockchains"; "finality, reorgs, RPC nodes" | 2026-10-30 |
| Dune | 2 | Staff engineer posts: Rust, Iceberg, Parquet, Ethereum and Solana | 2026-09-08 |
| TRM Labs | 2 | "sub-second latency for querying blockchain data"; "Iceberg, Trino, BigQuery, and StarRocks" | 2026-09-23 |
| BitGo | 1 | "blockchain reporting infrastructure and automated reconciliation systems" | 2026-10-28 |
| Keyrock | 3 | Rust, Kafka, ClickHouse, Iceberg and Delta | 2026-10-27 |
A link shows that a company has the problem or uses the stack. It does not show a budget or an intent to buy. No company in this table has been contacted.
Trigger events:
- 2026-10-31. Google's
goog-blockchain.*listings stopped receiving updates after this date (Google Cloud). Google offers replacement datasets, so queries must move. Base is not in the list. - Vendor exits and product sunsets, such as Flipside customers moved to SonarX, and Dune Sim.
- A Base or OP Stack upgrade that changes finality or block time.
- A public reorg incident in an indexer, like Envio #1512.
- A new data post that names reorgs, finality, Iceberg or Delta.
Contract offers, in order:
- Pipeline audit. Fixed scope. Run
canonlake verify, or its checks by hand before the first release, on the team's chain tables. Report orphan rows, gaps, duplicate keys and the finality rule per chain. - Build, rescue or migration. A "leaving BigQuery" migration to the team's own Delta tables, with a continuity check. A lakehouse build with dbt and Dagster models on Databricks. A rescue of an indexer that drifts after reorgs or reruns.
- Retainer. Add chains such as Arbitrum and OP Mainnet, and keep ABIs and proxies current.
Pricing is per scope.
Every job post found in this research was a full-time role. The research read 18 open data posts at 8 companies and probed about 70 job boards on 2026-10-30. It found no contract post. Paid contract demand for this work is a hypothesis.
Dollar value
These figures show the size of the activity that EVM chain tables record on the first two chains. They are not DataBlock revenue, and they are not a forecast. All figures are from the DefiLlama API, pulled 2026-10-30. "30 days" means the 30 days to 2026-10-30.
| Figure | Ethereum | Base | Source |
|---|---|---|---|
| Stablecoin supply | $141.20B | $5.13B | DefiLlama |
| DeFi TVL | $43.10B | $5.75B | DefiLlama |
| App fees, 30 days | $265.77M | $53.48M | DefiLlama (Ethereum, Base) |
| App revenue, 30 days | $69.05M | $17.42M | DefiLlama (Ethereum, Base) |
| Chain fees, 30 days | $18.52M | $2.55M | DefiLlama |
Ethereum leads the eight chains scored on stablecoin supply and TVL. Base is second on TVL. The Ethereum 30-day figures include a one-day spike on the pull date that was not checked. The prior 30 days give a baseline of $15.78M in chain fees and $53.75M in app revenue. No grant is open for this work: the Ethereum Foundation ESP has been closed to open applications since 2025-08-29, Optimism Retro Funding is paused, and Base Batches 003 is closed (all checked 2026-10-30).
What exists today and how this differs
- cryo writes Parquet, CSV or JSON files with no table format. canonlake adds range
commits, head rollback and
verify, and would keep cryo-like column names so users can switch. - Substreams has a stronger source and many chains. Its file sink writes Parquet per range. No Delta or Iceberg sink was found. It could be a later source for canonlake.
- Goldsky is hosted and has S3 Parquet among its sinks. canonlake is self-run and open source.
- Envio HyperIndex writes Postgres and ClickHouse under a EULA. Ponder writes Postgres for app APIs. Both serve different users.
- Dune and Allium datashares put data in the user's warehouse, managed by the vendor. For many chains with no operations work, a datashare is faster. canonlake is for teams that want the pipeline, keys and storage in their own account.
- evm-iceberg ("Frost") writes Iceberg and is an early MVP. Its reorg design was not checked, so no difference is claimed.
What is not decided yet
No code exists yet. This page describes a design.
- delta-rs methods. Range replace and a scoped MERGE delete are not yet checked method by method. The first spike settles this, with S3 conditional writes and real Spark reads.
- Other writers. If a user runs
OPTIMIZEfrom Spark, or registers the tables as managed, a commit can be lost. The design documents the rule. It cannot enforce it. - Leases. A small window remains between a lease re-read and a commit.
- Iceberg. It depends on Delta UniForm or Apache XTable working with delta-rs tables. That is not tested. The Arrow versions of delta-rs and iceberg-rust also differ.
- RPC providers differ on block receipts by hash, L2
finalizedtags and pre-Merge history. - Table layout. Separate tail tables, or one table with a finality column, is open. So is hex or binary for hashes.
- Small files build up if the user does not schedule
maintain. - Demand is inferred from the gaps above. A competitor may close the gap first.
The notes on reorgs, finality and idempotency and decoding contracts at scale cover the background.
If your team needs EVM chain data in Delta or Iceberg tables that stay correct through reorgs, I would like to hear about your setup.