ethers-console

0.3.0 • Public • Published

ethers-console

NPM Package

An Ethereum console using ethers.js.

For now just sets up handles for each network using an Infura Provider for a quick start.

Usage

> ethers-console
eth> mainnet.getTransactionReceipt('0x1234....')
eth> kovan.getBlockNumber().then(num=>console.log(num))
eth> local.getNetwork().then(num=>console.log(num))

Shortcuts:

eth> m    // mainnet
eth> k    // kovan
eth> r    // rinkeby
eth> ro   // ropsten
eth> l    // local   - localhost:8545 (JsonRpcProvider)
eth> g    // ganache - localhost:7545 (JsonRpcProvider)

Setup

> npm i -g ethers-console
> cat > ~/.ethers-console.env
INFURA_PROJECT_ID=<your infura.io project id>
^D

Todo

  • Signers - add private keys to ~/.ethers-console.env

Package Sidebar

Install

npm i ethers-console

Weekly Downloads

0

Version

0.3.0

License

Apache-2.0

Unpacked Size

14 kB

Total Files

5

Last publish

Collaborators

  • chatch