diff options
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, |