Skip to content

Creating a new Account using Geth Personal Api

Creating a new Account using Geth Personal Api

Documentation about Nethereum can be found at:


First, let’s download the test chain matching your environment from

Start a Geth chain (geth-clique-linux\, geth-clique-windows\ or geth-clique-mac\) using startgeth.bat (Windows) or (Mac/Linux). The chain is setup with the Proof of Authority consensus and will start the mining process immediately.

using Nethereum.Web3;

Now, let’s create a new instance of Web3:

var web3 = new Web3();

Using the Personal API we can now execute the request “NewAccount” with a password to encrypt the account storage file:

var account = await web3.Personal.NewAccount.SendRequestAsync("password");
Questions or feedback? You can discuss issues and obtain free support on Nethereum Discord channel.