diff options
author | Bas van Kervel <bas@ethdev.com> | 2015-06-09 22:06:51 +0800 |
---|---|---|
committer | Bas van Kervel <basvankervel@gmail.com> | 2015-06-11 20:01:41 +0800 |
commit | cc9ae399338557b6671e8fc83bb696c5ddb068fe (patch) | |
tree | 718e82c53c9dffebaf83cda6d1d1afe652e94e25 /rpc/api/net_js.go | |
parent | 08d72a9245ce6f1e11f84a6b59d66cb083bea9f9 (diff) | |
download | go-tangerine-cc9ae399338557b6671e8fc83bb696c5ddb068fe.tar go-tangerine-cc9ae399338557b6671e8fc83bb696c5ddb068fe.tar.gz go-tangerine-cc9ae399338557b6671e8fc83bb696c5ddb068fe.tar.bz2 go-tangerine-cc9ae399338557b6671e8fc83bb696c5ddb068fe.tar.lz go-tangerine-cc9ae399338557b6671e8fc83bb696c5ddb068fe.tar.xz go-tangerine-cc9ae399338557b6671e8fc83bb696c5ddb068fe.tar.zst go-tangerine-cc9ae399338557b6671e8fc83bb696c5ddb068fe.zip |
added admin API
Diffstat (limited to 'rpc/api/net_js.go')
-rw-r--r-- | rpc/api/net_js.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/rpc/api/net_js.go b/rpc/api/net_js.go index 6ba0624d8..2fae69c58 100644 --- a/rpc/api/net_js.go +++ b/rpc/api/net_js.go @@ -6,6 +6,13 @@ web3.extend({ 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', params: 0, |