json rpc – How to properly use the rpc command `listunspent` with `bitcore-lib` to create a transaction and get the transaction hash?
[ad_1] I am trying to use the rpc command listunspent to get all the UTXOs relevant to an address, and then I am trying to pass it to a transaction, using bitcore-lib. Below is my code: const Client = require(‘bitcoin-core’); const bitcore = require(‘bitcore-lib’); const client = new Client({ network: ‘regtest’, username: ‘bitcoinuser’, password: ‘bitcoinpass’, … Read more