Skip to Content
Mastering Blockchain Programming with Solidity
book

Mastering Blockchain Programming with Solidity

by Jitendra Chittoda
August 2019
Intermediate to advanced
486 pages
13h 52m
English
Packt Publishing
Content preview from Mastering Blockchain Programming with Solidity

Deploying the StableToken contract

We are going to access the local blockchain using the ganache-cli command. If ganache-cli is not already installed on your machine, you can run the following command to install it; otherwise, you can ignore it and directly start the blockchain:

$ npm install -g ganache-cli

To start the local blockchain, follow these steps:

  1. Open a new Terminal window and execute the following command to start the Ganache local blockchain instance on port 9545:
$ ganache-cli -p 9545
  1. Once the ganache-cli command has started the local blockchain instance, go back to the old Terminal window and run the following command:
$ npx zos session --network local --from 0x0421E4eB85b5a8443A8Fd5cc8ab3FfA0B723Db26 --expires 3600

In ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Ethereum

Mastering Ethereum

Andreas M. Antonopoulos, Gavin Wood
Complete Cryptocurrency and Blockchain Course | Learn Solidity

Complete Cryptocurrency and Blockchain Course | Learn Solidity

Ravinder Deol, Codestars By Rob Percival, Thomas Wiesner

Publisher Resources

ISBN: 9781839218262Supplemental Content