Is it a bug on JSON-RPC API document ?

KevinZhangKevinZhang Member Posts: 4
I'm trying to develop a golang library using JSON-RPC now, I wonder is there a document bug or not?

the example code of these three apis have the same "method" parameter, is it correct?

https://github.com/ethereum/wiki/wiki/JSON-RPC#shh_newgroup
curl -X POST --data '{"jsonrpc":"2.0",<b class="Bold"><i class="Italic">"method":"shh_newIdentity"</i></b>,"params":[],"id":73}'
https://github.com/ethereum/wiki/wiki/JSON-RPC#shh_addToGroup
curl -X POST --data '{"jsonrpc":"2.0",<b class="Bold"><i class="Italic">"method":"shh_hasIdentity"</i></b>,"params":["0x04f96a5e25610293e42a73908e93ccc8c4d4dc0edcfa9fa872f50cb214e08ebf61a03e245533f97284d442460f2998cd41858798ddfd4d661997d3940272b717b1"],"id":73}'


https://github.com/ethereum/wiki/wiki/JSON-RPC#shh_hasIdentity
curl -X POST --data '{"jsonrpc":"2.0",<b class="Bold"><i class="Italic">"method":"shh_hasIdentity"</i></b>,"params":["0x04f96a5e25610293e42a73908e93ccc8c4d4dc0edcfa9fa872f50cb214e08ebf61a03e245533f97284d442460f2998cd41858798ddfd4d661997d3940272b717b1"],"id":73}'



Sign In or Register to comment.