Social Icons

Showing posts with label ethereum. Show all posts
Showing posts with label ethereum. Show all posts

Monday, December 02, 2019

EMBARK BLOCKCHAIN FRAMEWORK : INSTALLATION Ubuntu 18.04 LTS

Embark is a framework that allows you to easily develop and deploy Decentralized Applications (DApps).A Decentralized Application is a serverless html5 application that uses one or more decentralized technologies.Embark currently integrates with EVM blockchains (Ethereum), Decentralized Storages (IPFS), and Decentralized communication platforms (Whisper and Orbit). Swarm is supported for deployment.This post gives the screen shots for installing a demo contract on EMBARK platform.Embark needs few per-requisites and tools installed including Node,Geth and IPFS.The complete list of history command as executed for getting EMBARK running is produced below :


1 sudo apt-get update
2 sudo apt-get install npm
3 sudo npm -g install embark
4 sudo npm i nyc
5 sudo apt-get install software-properties-common
6 sudo npm install
7 sudo npm -g install embark
8 curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
9 sudo apt install nodejs
10 curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
11 nvm install node
12 nvm install --lts
13 nvm install 8.10.0
14 nvm use v10.19.0
15 nvm install v10.19.0
16 npm install -g embark
17 embark -version
18 embark demo
19 cd embark_demo/
20 embark run












Thursday, October 10, 2019

GANACHE Blockchain installation UBUNTU 18.04 LTS

Ganache is a personal blockchain for Ethereum development one can use to deploy contracts, develop  applications, and run tests. It is available as both a desktop application as well as a command-line tool. Ganache is available for Windows, Mac, and Linux.This post will share few commands and screen shots to install Ganache in GUI mode in Ubuntu 18.04 LTS. It is an ethereum client which one can use for Ethereum development and is part of Truffle ecosystem. Ganache is used for the development of DAPP and once  developed and tested on the ganache,it can be deployed on any DAPP on ethereum client like geth or parity.


 Second step : Click at the Download button.
 Third step : chmod a+x ganache**** to make it executable
 Fourth step as above...simply run the executable
 Its ready to go...








Friday, September 06, 2019

BLOCKCHAIN BASICS & CRYPTOCRIMES CASE TAKES : Central Academy for Police Training(CAPT) Bhopal

Sharing my presentation on "BLOCKCHAIN BASICS & CRYPTOCRIMES CASE TAKES",taken at CAPT(Central Academy of Police Training),Bhopal on 31Aug 2019. The presentation after building upon basics of Blockchain and Cryptocurrencies takes on few known case studies including the Mt Gox Exchange theft and the role played by Kim Nilsson



Wednesday, July 17, 2019

Truffle Suite: Tools for Smart Contracts installation in UBUNTU 18.04 LTS

The following sets of screen shots show the Ubuntu installation part and a sample smart contract execution of Truffle,a personal blockchain for Ethereum development one can use to deploy contracts, develop  applications, and run tests.:

First command is to install npm
 The next screen shows installation of npm
 now we use npm to install truffle
 make a directory...I made a directory truffleproject as seen below:
 We also need to install atom...a code editor..available at atom.io
 In case of Ubuntu,download the .deb file from site
 Install atom

 Now download a sample smart code project metacoin
 Run Atom
 Open project
 Contracts...click
 choose Metacoin
 Run the code...
 

Saturday, February 02, 2019

Test Ether Faucet : "Hello world" kind SMART CONTRACT

1.       Smart Contracts are self-executing contractual states, stored on the blockchain, which nobody controls and therefore everyone can trust.Continuing ahead with the earlier post wherein we created few test ethers from the ropsten test network and then transferred few back to create some transactions.In this post we move further and create a small smart contract.

First move to https://faucet.metamask.io/

Once you connect the same with your account,your will find an open code by default.Since just the beginning,we simply delete and create a fresh new page to insert the contract code in as seen below :

 Blank page as seen below :



Find the code of the file faucet.sol

 copy the code...and save the file as faucet.sol
 code pasted

 Now the time to RUN
 Do a small change...amend the solidity program version like I have done to 5.1 and then also it asks to amend public to external
 Followed by submit
 Now time to deploy the same....
 











Wednesday, January 23, 2019

Transactions in METAMASK:Ropsten Test Network Ethereum

1. While at https://anupriti.blogspot.com/2019/01/metamask-extension-in-chromeinstallation.html we have installed metamask,now in this post we do a transaction of ethereum.While at the beginning learning stage we ideally should not be playing with real ethers,so there is a provision to get test ethers and do some dummy transactions to get a feel of how it actually works.

Firstly,we change the network choice from the Main Ethereum Network to Ropsten Test Network as seen in the screen shot below:
 Then we visit https://faucet.metamask.io/
 Simply request ether.I requested twice. :-)
 So,I got two ethers
In the transactions part,we see the links and while we click on any,we get to see the details of the transaction that reflect along with other details live from the ropsten test network explorer
 The transactions details as below :
 The details of Gas to be debited as seen below :
 So,now minus 1 ether and some gas,I am left with a rounded off 1 ether(not exactly one ether,its minus gas)
 The details seen in the Block explorer....as below

Powered By Blogger