aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api/net_js.go
blob: cc8d7f46e7383e79a72a1958bf651319940d5b26 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package api

const Net_JS = `
web3._extend({
    property: 'net',
    methods:
    [
        new web3._extend.Method({
            name: 'addPeer',
            call: 'net_addPeer',
            params: 1,
            inputFormatter: [null]
        })
    ],
    properties:
    [
        new web3._extend.Property({
            name: 'peers',
            getter: 'net_peers'
        }),
        new web3._extend.Property({
            name: 'version',
            getter: 'net_version'
        })
    ]
});
`