added admin API

This commit is contained in:
Bas van Kervel
2015-06-09 16:06:51 +02:00
committed by Bas van Kervel
parent 08d72a9245
commit cc9ae39933
14 changed files with 613 additions and 203 deletions

View File

@ -5,6 +5,13 @@ web3.extend({
property: 'network',
methods:
[
new web3.extend.Method({
name: 'addPeer',
call: 'net_addPeer',
params: 1,
inputFormatter: [web3.extend.utils.formatInputString],
outputFormatter: web3.extend.formatters.formatOutputBool
}),
new web3.extend.Method({
name: 'id',
call: 'net_id',