https://github.com/alanverbner/web3-repl
NodeJs Repl + Web3.js <3
https://github.com/alanverbner/web3-repl
ethereum nodejs repl web3js
Last synced: 12 months ago
JSON representation
NodeJs Repl + Web3.js <3
- Host: GitHub
- URL: https://github.com/alanverbner/web3-repl
- Owner: AlanVerbner
- License: mit
- Created: 2017-02-12T17:04:37.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-09-23T12:24:16.000Z (over 7 years ago)
- Last Synced: 2025-05-28T17:08:18.889Z (about 1 year ago)
- Topics: ethereum, nodejs, repl, web3js
- Language: JavaScript
- Size: 35.2 KB
- Stars: 15
- Watchers: 0
- Forks: 6
- Open Issues: 7
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# WEB3-REPL
This REPL allows to connect to a running ETC/ETH node via HTTP RPC. It's a simple NodeJs REPL wrapper with web3.js included.
## Features:
- [web3 API](https://www.npmjs.com/package/web3)
- Geth [management methods](https://github.com/ethereum/go-ethereum/wiki/Management-APIs)
- `status()` function is exposed in global as helper in order to get useful information about the server node
- [ethereumjs-util](https://github.com/ethereumjs/ethereumjs-util/blob/master/docs/index.md) exported as `util`
- NodeJs Repl history saved to a file

## How to install
`yarn global add web3-repl` (or `npm install --global web3-repl`)
## Usage
```
Usage: web3-repl [options]
Options:
-h, --help output usage information
-V, --version output the version number
-p, --provider [url] Web3JS RPC provider
-s, --skip-status Does not show status after bootstrap
-hf, --history-file [path] File path of commands history file (defaults to $HOME/.web3_repl_history)
```
## TODO
- [ ] Expose Parity admin methods
- [ ] Expose Mantis custom methods
- [ ] (Investigate) Web3@1.0.0 upgrade