Member-only story
See how to easily deploy Ethereum smart contracts using C# and VisualStudio and more
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.
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…