Skip to content
JsDevLife
Menu
  • Home
  • Leetcode in JS
  • About me
  • Contact Us
Menu

Introduction to Solidity a Smart Contracts

Posted on February 28, 2018 by Vikas Kad
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:

  • Solidity Introduction
  • Solidity Installation

1 thought on “Introduction to Solidity a Smart Contracts”

  1. Stella Jackson says:
    March 15, 2022 at 8:30 am

    I really appreciate you for your efforts put in this type of innovative post, it’s a surely helpful post to read. I learn new information from your article. Thank you very much for sharing meaningful information.

    NFT MarketPlace Development Company

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Solving LeetCode Problem 79 – Word Search in JavaScript
  • Solving LeetCode Problem 48: Rotate Image using JavaScript
  • Solving the “Container With Most Water” LeetCode Problem in JavaScript – A Comprehensive Guide
  • LeetCode Solution: 54: Spiral Matrix in JavaScript
  • Solution to LeetCode Problem 31. Next Permutation in JavaScript

Archives

  • 2023 (5)
  • 2022 (20)
  • 2021 (2)
  • 2020 (4)
  • 2019 (14)
  • 2018 (17)

Categories

  • blockchain development
  • Blog
  • crystal
  • flutter
  • flutter.io
  • GitHub
  • Installation
  • Ionic Framework
  • javascript
  • leetcode-in-js
  • masteringInJavasript
  • mcqs
  • MongoDB
  • nodejs
  • Object Oriented Javacript
  • python
  • smart contracts
  • visual studio

Quick Links

  • Home
  • Leetcode in JS
  • About me
  • Contact Us

Terms of service

  • Terms Of Service
  • Disclaimer
©2023 JsDevLife | Design: Newspaperly WordPress Theme