Posts

Showing posts from July, 2019

How to install Ethereum Blockchain Tools on UBuntu

Ganache https://www.trufflesuite.com/ganache Installing NodeJS -- Goto Terminal (Ctrl+Alt+T) Issue the following commands sudo apt update sudo apt install nodejs sudo apt install npm nodejs -v Installing Ganache -- Download the software -- Goto to Downloads folder on the Terminal Issue the following command sudo chmod 777 ganache-1.3.0-x86_64.AppImage sudo ./ganache-1.3.0-x86_64.AppImage Installing Anaconda on Ubuntu -- Download the software -- Goto Downloads folder Issue the following command sudo chmod 777 Anaconda3-2019.07-Linux-x86_64.sh sudo ./Anaconda3-2019.07-Linux-x86_64.sh

How to setup Hyperledger Fabric Host?

sudo apt-get update sudo apt install curl sudo apt-get -y install docker-compose sudo usermod -aG docker $USER docker -v docker-compose -v wget https://golang.org/dl/go1.11.11.linux-amd64.tar.gz sudo tar -xvf go1.11.11.linux-amd64.tar.gz export GOPATH=$HOME/go export PATH=$PATH:$GOPATH/bin add the path to .bashrc file export GOPATH=$HOME/go export PATH=$PATH:$GOPATH/bin curl -sL https://deb.nodesource.com/setup_8.x | sudo bash - sudo apt install nodejs curl -sSL http://bit.ly/2ysbOFE | bash -s 1.4.1 cd fabric-samples/first-network ./byfn.sh up ./byfn.sh down References https://medium.com/@kctheservant/setup-a-hyperledger-fabric-host-and-create-a-machine-image-682859fd58ba https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes

How to get the information of latest block in Ethereum Blockchain?

Attach with the ethereum node using following command geth attach Now issue the following command eth.getBlock('latest')

Why to create a full node?

Here are some of the benefits to have your own ethereum full node You’re solo mining or running a mining pool, if this is the case then you need a node in order to talk to the network. You want to make sure your transactions to the network yourself. Remote nodes are generally reliable but are controlled by 3rd parties and typically throttle heavy usage. You want to help secure the network; the more independent nodes running the more copies there are of the blockchain and the more resilient it is. You want to make the network faster and secure; the more nodes the lower the latency in sharing blocks and the more copies of the blockchain that exist.

How to import an account to geth?

Create some file name having your private key Use the following command geth account import <filename.key> Specify your password Attach with geth geth attach Now view the accounts eth.accounts View balance of some account eth.getBalance(' 0xaaCC95676c5A8EFa514889bEB8b32eff2124603e ')

How to know that the local node is synchronized successully?

Attach the to the mainnode geth attach Issue the following command eth.syncing if returned value is false then node is fully synchronized

How to start local ethereum node with coinbase and attach to mainnode?

Start the local ethereum node geth --etherbase '0xaaCC95676c5A8EFa514889bEB8b32eff2124603e' --mine Connect to local ethereum node geth attach To view the miner details use the following command > eth.coinbase