New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ethers-console

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ethers-console

ethers.js console

  • 0.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

Keywords

FAQs

Package last updated on 17 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc