ethers-console

ethers.js console

Usage no npm install needed!

<script type="module">
  import ethersConsole from 'https://cdn.skypack.dev/ethers-console';
</script>

README

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