# siddhantcookie/nethermind architecture

> Architecture diagram of the GitHub repository siddhantcookie/nethermind, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/siddhantcookie/nethermind
- Repository: https://github.com/siddhantcookie/nethermind

## Overview

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: [`src/Nethermind/Nethermind.Api/Extensions`](https://github.com/siddhantcookie/nethermind/tree/master/src/Nethermind/Nethermind.Api/Extensions) (Extensible plugins), [`src/Nethermind/Nethermind.Blockchain`](https://github.com/siddhantcookie/nethermind/tree/master/src/Nethermind/Nethermind.Blockchain) (Block processing), [`src/Nethermind/Nethermind.Optimism/CL/ExecutionEngineManager.cs`](https://github.com/siddhantcookie/nethermind/blob/master/src/Nethermind/Nethermind.Optimism/CL/ExecutionEngineManager.cs) (Optimism engine manager), [`src/Nethermind/Nethermind.Api`](https://github.com/siddhantcookie/nethermind/tree/master/src/Nethermind/Nethermind.Api) (JSON-RPC interfaces)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Node interface"]
  node_rpc["JSON-RPC interfaces<br/>[Nethermind.Api]"]
  node_pluginloader["Plugin loading<br/>[PluginLoader.cs]"]
end

subgraph group_protocol["Protocols and plugins"]
  node_plugins["Extensible plugins<br/>[Extensions]"]
  node_network["Network protocols<br/>[IApiWithNetwork.cs]"]
  node_consensus["Consensus engines"]
end

subgraph group_execution["Execution and state"]
  node_blockchain["Block processing"]
  node_evm["EVM execution<br/>[Nethermind.Evm]"]
  node_state["World state<br/>[StateProvider.cs]"]
  node_storage[("Persistent storage")]
end

subgraph group_rollups["Rollup integration"]
  node_engineapi["Engine API data"]
  node_opmanager["Optimism engine manager"]
end

node_operator(("Node operator"))
node_peers(("Ethereum peers"))
node_consensusclient(("Consensus client"))

node_operator -->|"configures and queries"| node_rpc
node_rpc -->|"returns node results"| node_operator
node_peers -->|"synchronizes chain data"| node_network
node_network -.->|"supplies blocks"| node_blockchain
node_blockchain -.->|"executes transactions"| node_evm
node_blockchain -.->|"updates world state"| node_state
node_state -.->|"persists state"| node_storage
node_operator -->|"starts node"| node_pluginloader
node_pluginloader -->|"loads plugins"| node_plugins
node_plugins -->|"extends consensus"| node_consensus
node_plugins -->|"extends protocols"| node_network
node_plugins -->|"adds namespaces"| node_rpc
node_consensusclient -.->|"exchanges Engine API calls"| node_opmanager
node_opmanager -->|"uses payload data"| node_engineapi
node_opmanager -.->|"submits payloads"| node_blockchain

click node_rpc "https://github.com/siddhantcookie/nethermind/tree/master/src/Nethermind/Nethermind.Api"
click node_pluginloader "https://github.com/siddhantcookie/nethermind/blob/master/src/Nethermind/Nethermind.Api/Extensions/PluginLoader.cs"
click node_plugins "https://github.com/siddhantcookie/nethermind/tree/master/src/Nethermind/Nethermind.Api/Extensions"
click node_network "https://github.com/siddhantcookie/nethermind/blob/master/src/Nethermind/Nethermind.Api/IApiWithNetwork.cs"
click node_consensus "https://github.com/siddhantcookie/nethermind/blob/master/src/Nethermind/Nethermind.Api/Extensions/IConsensusPlugin.cs"
click node_blockchain "https://github.com/siddhantcookie/nethermind/tree/master/src/Nethermind/Nethermind.Blockchain"
click node_evm "https://github.com/siddhantcookie/nethermind/tree/master/src/Nethermind/Nethermind.Evm"
click node_state "https://github.com/siddhantcookie/nethermind/blob/master/src/Nethermind/Nethermind.State/StateProvider.cs"
click node_storage "https://github.com/siddhantcookie/nethermind/blob/master/src/Nethermind/Nethermind.State/PersistentStorageProvider.cs"
click node_engineapi "https://github.com/siddhantcookie/nethermind/blob/master/src/Nethermind/Nethermind.Merge.Plugin/Data/EngineApiJsonContext.cs"
click node_opmanager "https://github.com/siddhantcookie/nethermind/blob/master/src/Nethermind/Nethermind.Optimism/CL/ExecutionEngineManager.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_rpc,node_pluginloader,node_consensusclient toneBlue
class node_plugins,node_network,node_consensus toneAmber
class node_blockchain,node_evm,node_state,node_storage toneMint
class node_engineapi,node_opmanager toneRose
class node_operator,node_peers toneIndigo
```

## Components

### Node interface

- [JSON-RPC interfaces](https://github.com/siddhantcookie/nethermind/tree/master/src/Nethermind/Nethermind.Api): `src/Nethermind/Nethermind.Api`
- [Plugin loading](https://github.com/siddhantcookie/nethermind/blob/master/src/Nethermind/Nethermind.Api/Extensions/PluginLoader.cs): `src/Nethermind/Nethermind.Api/Extensions/PluginLoader.cs`

### Protocols and plugins

- [Extensible plugins](https://github.com/siddhantcookie/nethermind/tree/master/src/Nethermind/Nethermind.Api/Extensions): `src/Nethermind/Nethermind.Api/Extensions`
- [Network protocols](https://github.com/siddhantcookie/nethermind/blob/master/src/Nethermind/Nethermind.Api/IApiWithNetwork.cs): `src/Nethermind/Nethermind.Api/IApiWithNetwork.cs`
- [Consensus engines](https://github.com/siddhantcookie/nethermind/blob/master/src/Nethermind/Nethermind.Api/Extensions/IConsensusPlugin.cs): `src/Nethermind/Nethermind.Api/Extensions/IConsensusPlugin.cs`

### Execution and state

- [Block processing](https://github.com/siddhantcookie/nethermind/tree/master/src/Nethermind/Nethermind.Blockchain): `src/Nethermind/Nethermind.Blockchain`
- [EVM execution](https://github.com/siddhantcookie/nethermind/tree/master/src/Nethermind/Nethermind.Evm): `src/Nethermind/Nethermind.Evm`
- [World state](https://github.com/siddhantcookie/nethermind/blob/master/src/Nethermind/Nethermind.State/StateProvider.cs): `src/Nethermind/Nethermind.State/StateProvider.cs`
- [Persistent storage](https://github.com/siddhantcookie/nethermind/blob/master/src/Nethermind/Nethermind.State/PersistentStorageProvider.cs): `src/Nethermind/Nethermind.State/PersistentStorageProvider.cs`

### Rollup integration

- [Engine API data](https://github.com/siddhantcookie/nethermind/blob/master/src/Nethermind/Nethermind.Merge.Plugin/Data/EngineApiJsonContext.cs): `src/Nethermind/Nethermind.Merge.Plugin/Data/EngineApiJsonContext.cs`
- [Optimism engine manager](https://github.com/siddhantcookie/nethermind/blob/master/src/Nethermind/Nethermind.Optimism/CL/ExecutionEngineManager.cs): `src/Nethermind/Nethermind.Optimism/CL/ExecutionEngineManager.cs`

### Other components

- **Node operator**
- **Ethereum peers**
- **Consensus client**

## Connections

- Node operator → JSON-RPC interfaces: configures and queries (evidence: `README.md`)
- JSON-RPC interfaces → Node operator: returns node results (evidence: `README.md`)
- Ethereum peers → Network protocols: synchronizes chain data (evidence: `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 (evidence: `src/Nethermind/Nethermind.State/PersistentStorageProvider.cs`)
- Node operator → Plugin loading: starts node (evidence: `README.md`)
- Plugin loading → Extensible plugins: loads plugins (evidence: `README.md`)
- Extensible plugins → Consensus engines: extends consensus (evidence: `README.md`)
- Extensible plugins → Network protocols: extends protocols (evidence: `README.md`)
- Extensible plugins → JSON-RPC interfaces: adds namespaces (evidence: `README.md`)
- Consensus client → Optimism engine manager: exchanges Engine API calls (evidence: `README.md`)
- Optimism engine manager → Engine API data: uses payload data (evidence: `src/Nethermind/Nethermind.Optimism/CL/ExecutionEngineManager.cs`)
- Optimism engine manager → Block processing: submits payloads
