consensusj
consensusj copied to clipboard
Not all Bitcoin rpc client methods are implemented
many methods are missing, any eta on the implementation?
I was interested in addnode for example
thanks
Note that you can call arbitrary RPC methods as follows:
client.send("addnode", "209.90.224.4:8333", "add");
client.send("getaddednodeinfo", true);
If the parameters are types that are already supported and you don't need the result converted to a statically typed POJO, this method works fine.
As this is an open-source, mostly volunteer effort, there is no schedule for adding additional methods, but I'm happy to accept pull requests and will try to add specific methods that are requested by the community.
@magg I made a quick commit to master 8967393f19a8226c29b40b30d3817c79d1ab17cd (and a second one that fixes an omission in my part 537ebc3658168760cbedaaba32890c79d84effe8)
I didn't add any tests, but I'm pretty sure these methods should work. If you're feeling ambitious check out master
and give them a try.
Edit: Note that we'll want to replace com.fasterxml.jackson.databind.JsonNode
with a POJO implementation of the getaddednodeinfo
JSON response, so any code that uses JsonNode
will need to be updated when the POJO is added.
@msgilligan thank you I just tested the master branch, it works great
Great. Thanks for testing!