Skip to content

Repository files navigation

web3Admin

Extend web3 with additional capabilities.

A fork of https://github.com/DecentricCorp/web3admin for Identity.com, exposing the following additional APIs:

moduletypename
txpoolpropertyinspect
txpoolpropertycontent

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, miner support.

Resources

Stars

13 stars

Watchers

7 watching

Forks

Releases

Packages

Used by

Contributors

Languages