Closed theborakompanioni closed 1 year ago
You are right, I did not maintain the java model because is more easy lever this to the user.
In fact, I start a lite client https://github.com/clightning4j/JRPClightning/blob/master/src/main/java/jrpc/clightning/LiteCLightningRPC.java maybe this helps you?
The usage of it should be pretty easy
@Test
public void testGetInfoCall() {
CLightningGetInfo getInfo = liteRpc.call("getinfo", CLightningGetInfo.class);
TestCase.assertFalse(getInfo.getId().isEmpty());
}
Let me know if I can help with some things. The library should be using is running my lightning node with the plugin https://github.com/clightning4j/btcli4j it needs just some more love from time to time
Thanks for the patch!
now it should be available as a snapshot jar, so let wait that you play a little bit with it before push another official release
Currently evaluating if this library can be used as default client for cln nodes in https://github.com/theborakompanioni/bitcoin-spring-boot-starter .
Still testing and evaluating, but noticed that according to https://lightning.readthedocs.io/lightning-close.7.html, a param in the channel close command is called
feerange
, notfeeange
. I have not yet done any integration tests, so please excuse me if I am mistaken.