Skip to content

Repository files navigation

web3Admin

Extend web3 with aditional capabilities

Install

npm install web3admin

Usage

const Web3 = require('web3')
const web3Admin = require('web3admin')
var web3 = new Web3()
setTimeout(function(){
web3Admin.extend(web3)
}, 1000)

Demo

node index.js
moduletypename
adminmethodaddPeer()
adminmethodexportChain()
adminmethodimportChain()
adminmethodverbosity()
adminmethodsetSolc()
adminmethodstartRPC()
adminmethodstopRPC()
adminpropertynodeInfo
adminpropertypeers
adminpropertydatadir
adminpropertychainSyncStatus
debugmethodprintBlock()
debugmethodgetBlockRlp()
debugmethodsetHead()
debugmethodprocessBlock()
debugmethodseedHash()
debugmethoddumpBlock()
minermethodstart()
minermethodstop()
minermethodsetExtra()
minermethodsetGasPrice()
minermethodstartAutoDAGv()
minermethodstopAutoDAG()
minermethodmakeDAG()
minerpropertyhashrate
networkmethodaddPeer()
networkmethodgetPeerCount()
networkpropertylistening
networkpropertypeerCount
networkpropertypeers
networkpropertyversion
txpoolpropertystatus

Extracted from Mist Wallet Modularized by Shannon Code c/o Loyyal

About

Module that extends web3 with support for admin, debug, network, minor support.

Resources

Stars

2 stars

Watchers

17 watching

Forks

Releases

Packages

Contributors

Languages