@dapp-stack/ethereum
This package allows you to start/stop a private node or connect to an existing network.
Installation
# Yarn
yarn add @dapp-stack/ethereum
# NPM
npm install @dapp-stack/ethereum
Usage
import * as ethereum from "@dapp-stack/ethereum";
ethereum.start("rinkeby")
ethereum.stop("rinkeby")
ethereum.console("rinkeby")
The network must be one of the following:
homestead
, rinkeby
, ropsten
, kovan
, dev
or external
external
is considered as a noop.
If you call the function ethereum.start
, ethereum.stop
or ethereum.console
without any arguments, we will try to fetch the network from the environment file
at:
environments/[DAPP_ENV].js
See: Environment for more detail.