Nethereum - An open source .NET integration library for blockchain

Nethereum is the .Net integration library for Ethereum, simplifying the access and smart contract interaction with Ethereum nodes both public or permissioned like Geth, Parity or Quorum.


Nethereum provides:

Getting started

Install .Net

Nethereum works with .Net Core or .Net Framework (from 4.5.1 upwards).You need to have the .Net SDK installed. For new starters or Mac and Linux users we recommend .Net core.

Create your app

Create a project using the .Net CLI or create a project in Visual Studio.

dotnet new console -o NethereumSample
cd NethereumSample

Add package reference to Nethereum.Web3

dotnet add package Nethereum.Web3

Open your IDE

Visual Studio Code or Visual Studio are both good choices for .Net development. Other good IDEs are also available (Jet Brains Rider etc).

Open the Program.cs file in the IDE or editor.

Code First Steps

First, the code adds required namespaces for Nethereum:

using Nethereum.Web3;

Next it creates an instance of Web3, with the infura url for mainnet.

var web3 = new Web3("");

And then you can use the Ethereum API via Nethereum to interact with accounts and transactions.

Next Steps