You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nethereum is the comprehensive .NET integration platform for Ethereum and EVM-compatible blockchains. It provides a complete development stack: from low-level ABI encoding and transaction signing, through a full EVM simulator and in-process Ethereum node, to blockchain data indexing, an ERC-4337 account abstraction bundler, a Blazor blockchain explorer, MUD framework support, multi-platform wallet UIs (Blazor, Avalonia, MAUI, Unity), and .NET Aspire orchestration. Nethereum targets netstandard 2.0, .NET 6/8/9/10, .NET Framework 4.5.1+, and Unity, running on Windows, Linux, macOS, Android, iOS, WebAssembly, and game consoles.
Quick Start by Use Case
I want to...
Packages
Basics
Send ETH and interact with contracts
Nethereum.Web3
Work with ERC-20, ERC-721, or ERC-1155 tokens
Nethereum.Web3 (includes typed contract services for all major standards)
Signing & Key Management
Sign transactions offline
Nethereum.Web3 + Nethereum.Accounts
Use an HD wallet (BIP32/BIP39)
Nethereum.HDWallet or Nethereum.Wallet (light hd wallet)
Sign with Trezor or Ledger
Nethereum.Signer.Trezor or Nethereum.Signer.Ledger
Sign with AWS KMS or Azure Key Vault
Nethereum.Signer.AWSKeyManagement or Nethereum.Signer.AzureKeyVault
The foundation layer provides Ethereum primitives, ABI encoding, RPC communication, and the high-level Web3 entry point. Most users only need Nethereum.Web3, which pulls in all core dependencies.
Nethereum.Contracts is the main package for smart contract interaction. It includes typed service classes for all major token and protocol standards. Additional standalone libraries provide deeper integration with specific protocols.
Core code generation engine (also available via VS Code Solidity extension)
Nethereum.Autogen.ContractApi
MSBuild task for automatic contract code generation on build
4. EVM Simulator
A full in-process Ethereum Virtual Machine supporting all opcodes through Prague/Cancun, with native precompile implementations, call tracing, state change extraction, and step-by-step debugging.
Full EVM simulator: all opcodes (including PUSH0, MCOPY, TSTORE/TLOAD, BLOBHASH), call frame tracking, access list (EIP-2929), gas accounting, state change extraction, and async debugging sessions
Nethereum includes a complete in-process Ethereum execution layer. Run a development chain for testing, a persistent node with RocksDB, or a custom application chain with sequencing, P2P networking, and L1 anchoring.
Full in-process Ethereum node: JSON-RPC handlers (eth_*, net_*, web3_*, debug_traceTransaction, debug_traceCall), state management, block production, transaction pool, filter management, WebSocket subscriptions, historical state with state diff tracking
Development chain: pre-funded accounts (10,000 ETH each), auto-mine, configurable block time, SQLite persistence (default), time manipulation (evm_increaseTime, evm_setNextBlockTimestamp)
HTTP server wrapper for DevChain with CORS, health checks, and ASP.NET Core hosted service. Compatible with MetaMask, Foundry, Hardhat, and any Ethereum tooling
Application Chain (Preview)
Nethereum.AppChain extends CoreChain to provide an application-specific chain layer. Applications run their own chain for domain-specific data and business rules — game state, social graphs, content, governance — while users retain the ability to exit with their data at any time. Financial assets and high-value state remain on L1s and L2s where they benefit from full Ethereum security.
Full ERC-4337 account abstraction stack: UserOperation creation and validation, a complete bundler with mempool and gas estimation, an RPC server, and ERC-7579 modular smart account contracts (validators, executors, hooks, session keys, paymasters).
Account abstraction integration for AppChain (gasless UX, session keys on app chains)
7. Blockchain Data Processing & Storage
Libraries for crawling blockchain data, detecting chain reorganisations, indexing tokens and internal transactions, and persisting to relational databases using Entity Framework Core.
Client libraries for interacting with MUD autonomous World instances, processing store events, and persisting/normalising MUD table data to relational databases.
Blazor UI components for MUD table interaction (query by key, upsert, deploy, scan assembly for tables)
9. Wallet & UI Frameworks
Multi-platform wallet implementation using MVVM architecture (CommunityToolkit.Mvvm) with shared ViewModels and platform-specific renderers for Blazor, Avalonia, MAUI, and Unity.
Chain state integrity and consistency verification
.NET Aspire Orchestration
The aspire/ directory provides .NET Aspire orchestration for spinning up a complete Ethereum development environment — DevChain, PostgreSQL, blockchain indexer, explorer, and optional bundler — with a single dotnet run.
Resource
Description
aspire/devchain/
Dev environment: AppHost + DevChain + Indexer + Explorer + Bundler + LoadGenerator, wired with Aspire service discovery and OpenTelemetry
dotnet new nethereum-devchain template: generates a standalone NuGet-based Aspire solution with configurable --NethereumVersion, --ChainId, and --AspireVersion