How siddhantcookie/nethermind works
Nethermind is a .NET Ethereum execution client. An operator runs the node, which exposes JSON-RPC and participates in chain synchronization; incoming blocks are executed and validated against world state, then persisted. Consensus and network protocols, JSON-RPC namespaces, and L2 support are extensible through plugins. The README documents these major capabilities, while the sampled source directly shows persistent storage and Optimism Engine API orchestration; unsampled runtime connections are therefore documented at a high level rather than inferred from imports.
Main entry points: Extensions Extensible plugins · Nethermind.Blockchain Block processing · ExecutionEngineManager.cs Optimism engine manager · Nethermind.Api JSON-RPC interfaces
Components 14
Node interface
- JSON-RPC interfaces
src/Nethermind/Nethermind.Api - Plugin loading
src/Nethermind/Nethermind.Api/Extensions/PluginLoader.cs
Protocols and plugins
- Extensible plugins
src/Nethermind/Nethermind.Api/Extensions - Network protocols
src/Nethermind/Nethermind.Api/IApiWithNetwork.cs - Consensus engines
src/Nethermind/Nethermind.Api/Extensions/IConsensusPlugin.cs
Execution and state
- Block processing
src/Nethermind/Nethermind.Blockchain - EVM execution
src/Nethermind/Nethermind.Evm - World state
src/Nethermind/Nethermind.State/StateProvider.cs - Persistent storage
src/Nethermind/Nethermind.State/PersistentStorageProvider.cs
Rollup integration
- Engine API data
src/Nethermind/Nethermind.Merge.Plugin/Data/EngineApiJsonContext.cs - Optimism engine manager
src/Nethermind/Nethermind.Optimism/CL/ExecutionEngineManager.cs
Other components
- Node operator
- Ethereum peers
- Consensus client
Connections 15
- Node operator → JSON-RPC interfaces: configures and queries
README.md - JSON-RPC interfaces → Node operator: returns node results
README.md - Ethereum peers → Network protocols: synchronizes chain data
README.md - Network protocols → Block processing: supplies blocks
- Block processing → EVM execution: executes transactions
- Block processing → World state: updates world state
- World state → Persistent storage: persists state
src/Nethermind/Nethermind.State/PersistentStorageProvider.cs - Node operator → Plugin loading: starts node
README.md - Plugin loading → Extensible plugins: loads plugins
README.md - Extensible plugins → Consensus engines: extends consensus
README.md - Extensible plugins → Network protocols: extends protocols
README.md - Extensible plugins → JSON-RPC interfaces: adds namespaces
README.md - Consensus client → Optimism engine manager: exchanges Engine API calls
README.md - Optimism engine manager → Engine API data: uses payload data
src/Nethermind/Nethermind.Optimism/CL/ExecutionEngineManager.cs - Optimism engine manager → Block processing: submits payloads