Introduction to Solidity a Smart Contracts

Hello JS Rockstars,
Solidity
Source: Wikipedia


As I am curious about blockchain and cryptocurrency.


I want to get more details about cryptocurrency and technology stack behind this whole blockchain.


So from my colleague, I got to know about Solidity so I want to get some hands-on on it.


So I went through some sites and created my some sample contracts,


as I already mentioned in my Introduction to blogspot post I am sharing my knowledge here only,


I am not covering what is blockchain and cryptocurrancy as this are already covered by many sites,


So I will start directly blockchain development and ethereum based smart contracts only with Solidity.


What is Solidity :

From Official Document, Solidity is a contract-oriented, high-level language for implementing smart contracts.
It was influenced by C++, Python, and JavaScript and is designed to target the Ethereum Virtual Machine (EVM).
Solidity is statically typed, supports inheritance, libraries and complex user-defined types among other features.
As you will see, it is possible to create contracts for voting, crowdfunding, blind auctions, multi-signature wallets and more.

So let's do some basic setup on your system.


Mac OS Installation:

Install Node modules:  

$ npm install -g solc

This is solidity compiler with javascript.


$ npm install -g truffle
Truffle is a development environment, testing framework and asset pipeline for Ethereum.
$ npm install -g ethereumjs-testrpc


testrpc is a Node.js based Ethereum client for testing and development.


Install required tools or software with brew:

$  brew update

$ brew upgrade

$ brew tap ethereum/ethereum

$ brew install solidity

$ brew linkapps solidity

Ubuntu Installation:

 

Install Node modules: 


$ npm install -g solc

$ npm install -g truffle
$ npm install -g ethereumjs-testrpc



$ sudo add-apt-repository ppa:ethereum/ethereum
$ sudo apt-get update
$ sudo apt-get install solc

Now you are done with your basic setup for developing your smart-contracts.


So click here to start your first solidity programming.

Reference Links:



Introduction to Solidity a Smart Contracts Introduction to Solidity a Smart Contracts Reviewed by Vikas Kad on Wednesday, February 28, 2018 Rating: 5

No comments:

Powered by Blogger.