bitcoind-rpc
bitcoind-rpc copied to clipboard
Can we get promise support?
I am having to wrap everything I use in promises to work with es6 style code, it would be great if we could get bitcoind-rpc to return promises
FWIW you can roll this yourself with bluebird:
let config = {... }
let cli = new BitcoinRpc(config);
Bluebird.promisifyAll(cli);
cli.getinfoAsync().then(...)
That's pretty cool. Would be neat to have this wrapped at the package level.
Is it possible? I am trying to do it but I get "Cannot read properties of undefined (reading 'batchedCalls')" error. Also I tried with util.promisify, same thing.