forked from mirror/go-ethereum
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
379 B
27 lines
379 B
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'
|
|
})
|
|
]
|
|
});
|
|
`
|
|
|