npm

Need private packages and team management tools?Check out npm Orgs. »

web3_extended

1.0.0 • Public • Published

web3_extended

A simple extension of the web3 interface to access the Management API.

Installation

  $ npm install web3_extended --save

Usage

Call just as you would normal web3. There is an options object to include. The currently implemented interfaces are personal, admin, and debug. Follows the same function arguments as the Javascript Console reference: here

Note: The security of this module has not been tested. Ideal for working inside a private network or testnet.

Example

var web3_extended = require('web3_extended');

var options = {
  host: 'http://localhost:8545',
  personal: true, 
  admin: true,
  debug: false
};
var web3 = web3_extended.create(options);

var datadir = web3.admin.datadir();
//'/Users/username/Library/Ethereum'

Tests

No tests are included

License: MIT

Author: Jordan Paul

Keywords

none

install

npm i web3_extended

Downloadsweekly downloads

74

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability