State_trie
Chapter 28: State & Merkle Trie Structures
Section titled “Chapter 28: State & Merkle Trie Structures”Overview
Section titled “Overview”Ethereum uses Merkle Tries to efficiently store and verify state data.
28.1 Merkle Patricia Trie
Section titled “28.1 Merkle Patricia Trie”Ethereum uses a Modified Merkle Patricia Trie (MPT) for state storage.
Trie Structure
Section titled “Trie Structure” Root Hash │ ┌───────────────┼───────────────┐ │ │ │ Prefix Path Suffix │ │ │ (nibbles) (key) (value)28.2 Trie Types
Section titled “28.2 Trie Types”| Trie | Purpose |
|---|---|
| State Trie | Account balances, code, storage |
| Transaction Trie | Block transactions |
| Receipt Trie | Transaction execution results |
28.3 State Access
Section titled “28.3 State Access”// Get account balance via state trieeth.getBalance("0x...", "latest")
// Get contract storageeth.getStorageAt("0x...", 0, "latest")Summary
Section titled “Summary”- Merkle Tries enable efficient state verification
- State trie contains all account data
- Patricia Trie optimizes path encoding
Last Updated: 2026-02-20