Home / Notes

The decentralized data stack, layer by layer

2026-10-30 · Web3 data · Edward Plata

A data engineer who moves into chain data meets many new names at once. Archive nodes, subgraphs, Substreams, blobs, IPFS, oracles, attestations. Most of them map onto layers you already know: sources, ingestion, storage, transform, serve and governance.

This note walks the stack one layer at a time. For each layer it asks three questions. What does it do? What is the closest idea in the modern data stack? Is it decentralized in practice, or is it a service or your own code?

In short, the chain is decentralized, and the analytics stack around it mostly is not. In my view, a hybrid setup is the normal case. The chain is the source of truth. A lake or warehouse is still where analysis happens.

The examples are mostly Ethereum and EVM chains, with Solana notes where the tools differ.

One map, two stacks

MODERN STACK        CHAIN DATA STACK                 DECENTRALIZED?
------------        ----------------                 --------------
Source / CDC   <->  Nodes + RPC                      network yes,
                    (full, archive, finalized tag)   access often a
                                                     provider
Ingestion      <->  Indexers: subgraphs, Substreams, mixed
                    Ponder, Envio, cryo extracts
Storage        <->  Chain state, blobs (~18 days),   mixed; analytics
                    IPFS, Filecoin, Arweave, lake    data in a lake
Transform      <->  ABI decode, proxies, prices      no (your code)
Serve / query  <->  GraphQL, SQL platforms, DWH      mostly no
Reference data <->  Oracles                          oracle networks
Provenance     <->  Attestations, signed claims      onchain records

Source: nodes and RPC

Every chain data pipeline starts at a node. A node holds the chain and answers JSON-RPC calls: blocks, transactions, receipts, logs and, on some clients, traces. You run a node or pay a provider to run one. Since the Merge, an Ethereum node is a pair: an execution client and a consensus client. Budget for both.

Ethereum full nodes "only keep a local copy of relatively recent data (typically the most recent 128 blocks), allowing older data to be deleted to save disk space" (ethereum.org, nodes and clients). Archive nodes "verify every block from genesis and never delete any of the downloaded data." You need archive state to query something like "an account balance at block #4,000,000".

A full node serves recent blocks, logs and receipts. It may not serve old ones. On 2025-07-08 the Ethereum Foundation announced that "all Ethereum execution clients support partial history expiry", which removes "the block data prior to the Merge" and saves 300 to 500 GB (EF blog). Check whether your client still serves pre-Merge blocks and receipts before you plan a backfill from it. For historical state, such as a balance or an eth_call at an old block, you need an archive node or a provider with one.

Disk size depends on the client, the mode and the date. The figures below are historical. They show the order of magnitude. Do not size hardware from them.

Client, modeDisk, as stated in the client docsFigure dated
Reth fullat least 1.2 TB2025-06-23
Reth archiveat least 2.8 TB2025-06-23
Erigon full534.94 GB in use, 2 TB recommendedmeasured 2026-09-17
Erigon archive2.25 TB in use, 4 TB recommendedmeasured 2026-09-17
Geth path-based archivearound 2 TB; about 6.5 TB with historical trie dataundated page
Geth hash-based archive"can exceed 20TB"undated page

Sources: Reth, Erigon, Geth archive. Chain data grows every day. Unless your client embeds a consensus client, the consensus client needs its own disk. Check the current client docs when you build.

One RPC feature matters for every pipeline: block tags. finalized returns "the latest finalized block" (ethereum.org, JSON-RPC). Read history up to that block and treat newer data as provisional. Reorgs, finality and idempotency explains why, and what to do on chains without that tag.

Some lookups leave the chain on purpose. EIP-3668 (CCIP Read) lets a contract "revert using OffchainLookup(...)". The client fetches data from listed URLs, and the contract "can then decode and verify the returned data" (EIP-3668). If your pipeline resolves names or metadata, expect some reads to need an offchain step.

Ingestion: indexers

A node answers questions one block at a time. An indexer turns that into a stream or a table. In modern data stack terms, an indexer is CDC plus a first transform. Unlike a CDC source, the chain can retract recent rows when it reorganizes.

Indexing protocols and streaming engines. The Graph "is an indexing protocol that provides an easy way to query blockchain data through open APIs known as subgraphs", with a GraphQL interface (ethereum.org, data and analytics). Substreams, from the same ecosystem, streams processed blocks to a sink, run by a provider or by you. A sink receives blockScopedData and blockUndoSignal messages, and "You must persist the cursor" (Substreams docs).

Self-hosted indexing frameworks. Ponder and Envio HyperIndex run your handler code against chain data and write to a database. Both have rollback support within a configured limit. The reorg note covers the defaults.

Bulk extractors. Paradigm's cryo pulls chain data into files. Its datasets map onto RPC calls: blocks from eth_getBlockByNumber, logs from eth_getLogs, traces from trace_block (cryo). Its latest tagged release is 0.2.0 from 2023-08-15. The repository had commits as recent as 2026-10-17. Pin a commit if you depend on it.

Solana. Solana validators stream data through Geyser plugins. Yellowstone gRPC is a common interface. It streams accounts, transactions and slot status, including SLOT_FINALIZED and SLOT_DEAD (Yellowstone proto).

A common pattern combines two tools. Backfill history with a bulk extractor up to the finalized block. Run a streaming indexer for the head. Whether to run these yourself is a build-or-buy decision, covered in build or buy on-chain data.

Storage: chain, blobs, content-addressed and permanent

"Decentralized storage" covers several systems with different guarantees. None of them replaces a data lake for analytics.

Chain state. Current contract storage lives on every full node. It is expensive to write and is not a place for bulk data.

Blobs. Rollups post their data to Ethereum as blobs. Blob data "is not accessible to the EVM and is automatically deleted after a fixed time period (set to 4096 epochs at time of writing, or about 18 days)" (ethereum.org, danksharding). EIP-4844 says "the consensus layer is tasked with persisting the blobs for data availability, the execution layer is not" (EIP-4844). Only the contents expire. Blob counts, fees and versioned hashes stay in the execution-layer transactions.

After the Fulu upgrade (PeerDAS), a node does not keep every blob. The spec splits data into 128 columns, and an honest node custodies a minimum of 4 of 128 custody groups (Fulu DAS spec). The retention window is still 4,096 epochs. To capture full blob contents, run a consensus node configured to custody all columns, or use a blob archive service. Do it within the window.

IPFS. A CID "doesn't indicate where the content is stored, but it forms a kind of address based on the content itself" (IPFS docs). A CID proves what the content is. It does not keep the content online. "To ensure that data persists on IPFS, and is not deleted during garbage collection, data can be pinned to one or more IPFS nodes" (IPFS persistence). If your tables depend on IPFS-hosted metadata, pin your own copy and store the CID.

Filecoin. With proof-of-replication, "storage providers prove they have created a unique copy of the client's data", and they "must continuously prove that they are storing clients' data throughout the entire duration of the storage deal" (Filecoin docs). Sectors have "a minimum duration (currently 180 days)". Deals end. Renew them or lose the copy.

Arweave. Arweave describes itself as "Permanent information storage. The Arweave network is like Bitcoin, but for data" (Arweave). That is the project's own claim.

Your lake. For analytics, Parquet or Iceberg files in object storage still win on query cost and tooling. Keep analytics tables in the lake. Use IPFS, Filecoin or Arweave for archives or for content that a protocol references by hash.

Transform: decoding, proxies and prices

The transform layer is your own code. Raw logs need ABIs. Proxies need resolution per block range. Token amounts need decimals. USD values need a price source with a staleness rule. Most of the data engineering effort goes here. Decoding contracts at scale covers it.

Serve and query

Three serving patterns are common.

  • GraphQL from an indexer. Subgraphs expose a GraphQL API. This suits applications that need a few entity types with filters.
  • SQL platforms. Dune "pre-processes blockchain data into relational database (DuneSQL) tables" for blocks, transactions, logs and calls (ethereum.org, data and analytics). This suits analysts and public dashboards.
  • Your own warehouse. You control the schema, joins to offchain data and access rules. This suits finance, compliance and product analytics that mix chain and company data.

None of these is decentralized in the usual sense. The Graph Network can serve a subgraph from multiple indexers, but you still query an API.

Reference data: oracles

In a warehouse, reference data such as FX rates comes from outside. On a chain, oracles play that role. "Oracles are applications that produce data feeds that make offchain data sources available to the blockchain for smart contracts", because contracts "cannot, by default, access information stored outside the blockchain network" (ethereum.org, oracles).

Oracles matter to a data team in two ways. First, protocols use oracle prices for liquidations and settlements, so you need the same prices to explain what happened. Second, oracle updates are a dataset. Chainlink feeds update when the "Deviation Threshold or Heartbeat Threshold triggers an update" (Chainlink docs), so every value has an age. Ingest updates as a table with timestamps. A feed value is not a trade price.

Provenance: attestations and signed claims

Lineage, access control and data contracts stay in your own systems. Chains add one useful primitive: signed, structured claims with a verifiable signer.

The Ethereum Attestation Service "is an open-source infrastructure public good for making attestations onchain or offchain". Its docs say "attestations are simply digital signatures on a structured pieces of information" (EAS docs). A data team can consume attestations as facts with provenance, for example "this address passed a check". It can also publish attestations about its own data.

What to take away

  • The chain is the source. Your lake or warehouse is still the analytics store.
  • Full nodes may not serve pre-Merge history. Archive state is a separate need.
  • Quote disk sizes with client, mode and date, and add the consensus client.
  • Capture blob contents within about 18 days, with a node that custodies all columns.
  • A CID proves content. Pinning keeps it available.
  • Treat oracle values as dated reference data.

The on-chain analytics lakehouse puts these layers into one design. Web3 data in 2026 gives the market view. The Web3 data service and Rust ingestion and indexers pages describe how I work on these layers.

If you are mapping your own chain data stack and want a second opinion on each layer, I can review it with you.

Book a 30-minute call

Ask a question