Learn BlockChain Development with me #4: Getting started with ethereumjs-testrpc

in #blockchain7 years ago (edited)

In this post, I will share about what you need to know to get started your ethereum network at local host. ethereumjs-rpc is a simulation of ethereum protocol which is really fast.

Requirement

Installation

npm install -g ethereumjs-testrpc or yarn global add etherumjs-testrpc

Start the shell

Run testrpc in the console.

Screen Shot 2018-02-06 at 8.59.01 AM.png

  • It will generate 10 accounts with private keys and each of them has 100 ether.
  • It also opens up a port at localhost:8545.
  • The mnemonic key you can save it so that the next time when you want to generate the same thing, just use that Mnemonic key.

Use Mnemonic key to start testrpc

My mnemonic key is

near custom pear 
soccer example kiss 
stage fly super 
theory spread need

So, I can run in the console with the following command:

testrpc -m "near custom pear soccer example kiss stage fly super theory spread need"G

Curriculum

  1. #1: Introduction to Blockchain and Smart Contract
  2. #2: Ethereum Node and Install Development tools
  3. #3: genesis.json explained and start genesis block with Geth
Sort:  

very nice step by step guide. got chance wait till you are back so can ask you more.

Thanks denion. I also learn it on the way haha. You can ask me anytime, you don't need to wait me back 😂

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 62676.37
ETH 2581.43
USDT 1.00
SBD 2.72