added shh API
This commit is contained in:
committed by
Bas van Kervel
parent
bd38428f33
commit
7e41d7ac51
30
rpc/api/ssh_js.go
Normal file
30
rpc/api/ssh_js.go
Normal file
@ -0,0 +1,30 @@
|
||||
package api
|
||||
|
||||
const Shh_JS = `
|
||||
web3._extend({
|
||||
property: 'shh',
|
||||
methods:
|
||||
[
|
||||
new web3._extend.Method({
|
||||
name: 'post',
|
||||
call: 'shh_post',
|
||||
params: 6,
|
||||
inputFormatter: [web3._extend.formatters.formatInputString,
|
||||
web3._extend.formatters.formatInputString,
|
||||
web3._extend.formatters.formatInputString,
|
||||
,
|
||||
, web3._extend.formatters.formatInputInt
|
||||
, web3._extend.formatters.formatInputInt],
|
||||
outputFormatter: web3._extend.formatters.formatOutputBool
|
||||
}),
|
||||
],
|
||||
properties:
|
||||
[
|
||||
new web3._extend.Property({
|
||||
name: 'version',
|
||||
getter: 'shh_version',
|
||||
outputFormatter: web3._extend.formatters.formatOutputInt
|
||||
})
|
||||
]
|
||||
});
|
||||
`
|
Reference in New Issue
Block a user