All blockchains use LevelDB / RocksDB under the hood

How Blockchains Store Data

Bitcoin, Ethereum, Solana, Cosmos, Sui, Aptos — they all use similar key-value databases. The difference is the data structure on top and how it shapes their capabilities.

core-insight.ts
// All blockchains use KV databases under the hood
// The MAGIC is in what structure sits on top
Bitcoin: DB[hash(tx)] Merkle binary tree
Ethereum: DB[hash(trie_node)] 16-way Patricia Trie
Substrate: DB[hash(pallet+name)] Composed Key Trie
Cosmos: DB[hash(iavl_node)] Versioned AVL Tree
Solana: DB[pubkey] FLAT — no tree!
Sui: DB[object_id] Sparse Merkle Tree

Storage Models

UTXO + Binary Merkle

No account state. Track unspent coins. Simple binary Merkle proofs.

Ξ

Merkle Patricia Trie

16-way trie. keccak256(address) = key. Powerful but storage-heavy.

Composed Key Trie

pallet + storage + key = composed trie path. Modular namespacing.

Versioned AVL Tree

IAVL — immutable, versioned. Historical queries built-in.

Flat Account Store

No global trie! Pure flat KV. Insane throughput via Sealevel.

Object Model

Every asset = unique object. Owned objects = parallel txs.

Verkle Trees (future)

Polynomial commitments. Proofs 100× smaller. Stateless clients.

All Blockchains

Click any chain to see its storage structure in detail