https://github.com/chatch/ethers-console
An ethereum console using ethers.js
https://github.com/chatch/ethers-console
ethereum ethersjs
Last synced: 9 months ago
JSON representation
An ethereum console using ethers.js
- Host: GitHub
- URL: https://github.com/chatch/ethers-console
- Owner: chatch
- License: apache-2.0
- Created: 2020-02-29T07:35:51.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-17T10:51:11.000Z (over 4 years ago)
- Last Synced: 2025-08-12T21:34:02.717Z (10 months ago)
- Topics: ethereum, ethersjs
- Language: JavaScript
- Size: 37.1 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ethers-console
[](https://www.npmjs.org/package/ethers-console)
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=
^D
```
## Todo
* Signers - add private keys to ~/.ethers-console.env