Official Go implementation of the Ethereum protocol
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.
go-ethereum/rpc/api/admin_js.go

68 lines
1.7 KiB

10 years ago
package api
const Admin_JS = `
web3._extend({
10 years ago
property: 'admin',
methods:
[
new web3._extend.Method({
10 years ago
name: 'addPeer',
call: 'admin_addPeer',
params: 1,
inputFormatter: [web3._extend.utils.formatInputString],
outputFormatter: web3._extend.formatters.formatOutputBool
10 years ago
}),
new web3._extend.Method({
10 years ago
name: 'peers',
call: 'admin_peers',
params: 0,
inputFormatter: [],
outputFormatter: function(obj) { return obj; }
}),
new web3._extend.Method({
10 years ago
name: 'exportChain',
call: 'admin_exportChain',
params: 1,
inputFormatter: [web3._extend.utils.formatInputString],
10 years ago
outputFormatter: function(obj) { return obj; }
}),
new web3._extend.Method({
10 years ago
name: 'importChain',
call: 'admin_importChain',
params: 1,
inputFormatter: [web3._extend.utils.formatInputString],
10 years ago
outputFormatter: function(obj) { return obj; }
}),
new web3._extend.Method({
10 years ago
name: 'verbosity',
call: 'admin_verbosity',
params: 1,
inputFormatter: [web3._extend.utils.formatInputInt],
outputFormatter: web3._extend.formatters.formatOutputBool
10 years ago
}),
new web3._extend.Method({
10 years ago
name: 'syncStatus',
call: 'admin_syncStatus',
params: 1,
inputFormatter: [web3._extend.utils.formatInputInt],
10 years ago
outputFormatter: function(obj) { return obj; }
}),
new web3._extend.Method({
10 years ago
name: 'setSolc',
call: 'admin_setSolc',
params: 1,
inputFormatter: [web3._extend.utils.formatInputString],
outputFormatter: web3._extend.formatters.formatOutputString
10 years ago
})
],
properties:
[
new web3._extend.Property({
10 years ago
name: 'nodeInfo',
getter: 'admin_nodeInfo',
outputFormatter: web3._extend.formatters.formatOutputString
10 years ago
})
]
});
`