According to the documentation the rpc endpoint can be used with the following body:
I have added the following log in the line 128 (in lightning-client-js.js )
global.logger.log("sendObj: " + JSON.stringify(sendObj));
And this is the result in the logs
plugin-plugin.js: sendObj: {\"jsonrpc\":\"2.0\",\"params\":[],\"id\":\"22\"}
Of course, later lightningd fails with "no method" error.
PS: Added more logs to rpc.js and saw that the req.body object contains the method property... but then req.body.method is undefined.
According to the documentation the rpc endpoint can be used with the following body:
I have added the following log in the line 128 (in lightning-client-js.js )
And this is the result in the logs
Of course, later lightningd fails with "no method" error.
PS: Added more logs to rpc.js and saw that the
req.bodyobject contains the method property... but thenreq.body.methodis undefined.