ListTransactionsOfBlock RPC-Feature-Request #2565

issue shufps opened this issue on April 25, 2013
  1. shufps commented at 3:25 PM on April 25, 2013: none

    Hi all,

    I've been coping with reliably receive transactions which have a confirmation counter of at least 2 for a couple of days.

    After different failings, I found out about the listtransactionsofblock RPC method which gives all transactions after a given block hash. It also gives the last block hash back which can be used in the next iteration.

    The problem is that it gives me back unconfirmed transactions which were received after the last block which are worthless because they are unconfirmed. Moreover, it gives me these unconfirmed transactions over and over again when passing the 'lastblock"-hash to the method when there is no newer block. The main problem is that the output of the method is not constant although using the same hash, so one can't be sure there aren't more transactions coming ...

    My proposal would be to implement a RPC-method which is named "listtransactionsofblock"giving me all transactions for which my wallet has got addresses.

    Naturally, this method would only return transactions with at least one confirmation. The number of confirmations can be counted easily by subtracting the block-number from the total number of blocks.

    It also should give back the next block-hash in the blockchain for iterating through the chain when a new block appears.

    Perhaps, the 'nextblock'-hash could be dependend from the number of confirmations. So, the loop processing the transactions would constantly stay 2 or 3 or 6 blocks behind the block-chain head.

    I would love this feature because doing it this way would assure you to only watch every transaction within a block once.

    What do you think about it?

    All the best, shufps

  2. laanwj commented at 3:00 PM on November 12, 2013: member

    Closing this as apparently #2579 (an implementation) was not accepted because core devs didn't see the use case.

  3. laanwj closed this on Nov 12, 2013

  4. 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-29 03:16 UTC

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