[go: up one dir, main page]

Sitemap

Koukia

Vancouver based Software Engineer and Leader, Geek, Hiker …. Living my dream life.

See how to easily deploy Ethereum smart contracts using C# and VisualStudio and more

3 min readJan 24, 2017

--

Nethereum is the .Net integration library for Ethereum, it allows you to interact with Ethereum clients like geth, eth or parity using RPC

The Story

In a previous article I demonstrated how to use Solidity Visual Studio Extension to be able to implement Ethereum Smart Contracts using Visual Studio or Visual Studio Code.

Now I want to show, when your Solidity Smart Contract code is ready, how you can actually deploy that smart contract code to the Ethereum network using C# code.

What do we do?

So first of all, we need an empty C# Console application (Obviously you can do the same thing in a web app or any other app with C# language).

Then we need to install a nuget package called Nethereum.

Press enter or click to view image in full size
Nethereum Nuget packages

I install all of them, except for the Nethereum.Portable one (I think that one has all the others in it as dependency, so if you want you can just download that single one)

Now, is the time to do some coding.

First thing we need to do in the code is to UnLock the account that will be used to create the contract in the Ethereum network. Any gas price or Ethers transferred to the smart contract…

--

--

Koukia
Koukia

Published in Koukia

Vancouver based Software Engineer and Leader, Geek, Hiker …. Living my dream life.

Aram Koukia
Aram Koukia

Written by Aram Koukia

Software Engineer, Engineering Leader and Manager @ AWS. Living my dream life. http://koukia.ca/

Responses (6)