Getting started with Browseth-Cli

The Browseth-Cli features a few sample react apps that demonstrate the uses of the Browseth library. Here we’re going to look at the Wallet example. First you’re going to need Geth:

// Geth for Mac

brew tap ethereum/ethereum

brew install ethereum // Geth for Ubuntu

sudo apt-get install software-properties-common

sudo add-apt-repository -y ppa:ethereum/ethereum

sudo apt-get update

sudo apt-get install ethereum

Okay! Now we’re ready for the Browseth-Cli:

yarn global add @browseth/cli

Then to create the sample app run:

browseth-cli create-sample-wallet <path>

And you should see this as a result

As mentioned in the image, run the following commands to install all required dependencies:

cd <path> && yarn

In a separate terminal in the same directory run Geth:

// For testing

yarn geth

// For mainnet

geth

You can edit the config file at ‘src/config.json’. Change the URL to use your own Infura Api Key which you can obtain by visiting https://infura.io/. If you want to run on the testnet, remove the url and set the chainId to 1337. Otherwise for the mainnet, leave the URL and have the chainId set to 1 (default).

Lastly, to start run: