Add vout to listsinceblock response #4244

issue ThePiachu opened this issue on May 29, 2014
  1. ThePiachu commented at 3:06 AM on May 29, 2014: none

    Recently I decided to switch from using listunspent in my code to listsinceblock for processing transactions. The information I used to receive from listunspent was in the format of:

    {'account': 'Test', 'vout': 0, 'txid': '0106719077ecf117f52b4b17cec68f8e0580603f04abc9f98e053ff9689c0562', 'amount': 0.01, 'confirmations': 5129, 'address': 'mvPFEtQKyAWS8ixQBSGS8hPPMhrVRNVTmy', 'scriptPubKey': '76a914a314b4516faf67360e753a6dfd1fc668ea90e98c88ac'}

    The information I receive from listsinceblock is in the form of:

    {'category': 'send', 'account': '', 'fee': 0.0, 'blockhash': '000000009e131e0f2f5f8b3b1485622cb1a39a94bbb4aac43bca291fc7e21090', 'blockindex': 20, 'walletconflicts': [], 'time': 1392137346, 'txid': '00b0ebf36eb216e1e772b10171c86a45ddf073cf9b4bb8b204a62477ea51a75f', 'blocktime': 1392138920, 'amount': -1.0, 'confirmations': 64795, 'timereceived': 1392137346, 'address': 'n18poNZrLTNHQMFHj89A6B3ukprGMQu6nN'},

    {'category': 'send', 'account': '', 'fee': 0.0, 'blockhash': '000000009e131e0f2f5f8b3b1485622cb1a39a94bbb4aac43bca291fc7e21090', 'blockindex': 20, 'walletconflicts': [], 'time': 1392137346, 'txid': '00b0ebf36eb216e1e772b10171c86a45ddf073cf9b4bb8b204a62477ea51a75f', 'blocktime': 1392138920, 'amount': -2e-08, 'confirmations': 64795, 'timereceived': 1392137346, 'address': 'mtT9kuEYE6VtGH3Wz3SvPJaBNS9eJsNTbp'},

    {'category': 'receive', 'account': 'Test', 'blockhash': '000000009e131e0f2f5f8b3b1485622cb1a39a94bbb4aac43bca291fc7e21090', 'blockindex': 20, 'walletconflicts': [], 'time': 1392137346, 'txid': '00b0ebf36eb216e1e772b10171c86a45ddf073cf9b4bb8b204a62477ea51a75f', 'blocktime': 1392138920, 'amount': 1.0, 'confirmations': 64795, 'timereceived': 1392137346, 'address': 'n18poNZrLTNHQMFHj89A6B3ukprGMQu6nN'},

    {'category': 'receive', 'account': 'Test', 'blockhash': '000000009e131e0f2f5f8b3b1485622cb1a39a94bbb4aac43bca291fc7e21090', 'blockindex': 20, 'walletconflicts': [], 'time': 1392137346, 'txid': '00b0ebf36eb216e1e772b10171c86a45ddf073cf9b4bb8b204a62477ea51a75f', 'blocktime': 1392138920, 'amount': 2e-08, 'confirmations': 64795, 'timereceived': 1392137346, 'address': 'mtT9kuEYE6VtGH3Wz3SvPJaBNS9eJsNTbp'},

    The latter lacks vout for 'category': 'receive', which means it is impossible to use just that data to uniquely identify a transaction output for processing. If someone created a transaction with 2 outputs to the same address and amount, those would essentially produce 2 identical entries for listsinceblock.

    I would like the vout parameter added to the listsinceblock output to make its responses more like listunspent for consistency.

  2. laanwj added the label Wallet on May 29, 2014
  3. laanwj commented at 6:28 AM on May 29, 2014: member

    Looks related to (if not a duplicate) of #1613.

  4. laanwj added the label RPC on May 29, 2014
  5. ThePiachu commented at 10:00 PM on February 18, 2015: none

    If I'm not mistaken, Bitcoin Core 0.10 does now display vouts for ListSinceBlock, so this issue can be closed.

  6. ThePiachu closed this on Feb 18, 2015

  7. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me