Skip to content

Instantly share code, notes, and snippets.

@lingqingmeng
Created January 5, 2018 22:20
Show Gist options
  • Save lingqingmeng/d54a1d69e40ba7bb02dfc696d6666e77 to your computer and use it in GitHub Desktop.
Save lingqingmeng/d54a1d69e40ba7bb02dfc696d6666e77 to your computer and use it in GitHub Desktop.
React DApp Tutorial Series - Part 4 of 15

Three most common ways to create an account

  1. My Ether Wallet
  2. Using Web3 and Node REPL
  3. Parity GUI

1. Quickest and arguably least secure

go https://myetherwallet.com
create new

2. Programatically and most useful for mischief

Install web3 1.0.0 and run node

In Shell

npm init
npm install [email protected] --save
node

Writing down my phrase
gooey barista clumsily decathlon lubricate unfazed support gander unsoiled erasure jiffy ocean

In Node

var Web3 = require('web3');    
var url = "ws://localhost:8546";   
var infura = "ws://mainnet.infura.io/WhUD2ASrnbY9Bswx7yNv";   
var web3 = new Web3(Web3.givenProvider || infura);  
web3.eth.accounts.create(["this is my seed phrase"]);   

3. Safest so you don't expose secret key

Run parity
Go to localhost:8545
Accounts tab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment