bitcore-node icon indicating copy to clipboard operation
bitcore-node copied to clipboard

getAddressUnspentOutputs does not return confirmations

Open ghost opened this issue 9 years ago • 1 comments

The documentation example for getAddressUnspentOutputs for Bitcoind https://github.com/bitpay/bitcore-node/blob/5e899c18d01efc771b8a90fed1e294f969a48b08/docs/services/bitcoind.md shows a confirmations field. In my tests this field is not returned.

What I'm getting:

{"address":"2MsMiG7cdcYm9pscoo1rSXUEbZkYhh4NZWd","txid":"0b9ed6e064b88c6b1934313917b7251ef714ed651368de731e943790115ae074","outputIndex":0,"script":"a914013a18ca60bc5ab5b244722058570763e675384a87","satoshis":200000000,"height":248}

But the insight api does return it in /addr/:address/utxo. Can they be more consistent these endpoints together?

I would like to tell my bitcore version but bitcore -V command is not working (returns undefined...).

ghost avatar Jan 10 '17 11:01 ghost

so through bitcoin service to get the confirmations I should get first the txid from getunspentoutputs, then the detailed transaction and then the block header, right?

ghost avatar Jan 10 '17 12:01 ghost