wallet RPC to get in/out transaction count #5572

issue ghost opened this issue on December 30, 2014
  1. ghost commented at 12:03 PM on December 30, 2014: none

    can we please have gettxincount and gettxoutcount as wallet rpc commands, as adoption increases, more and more specific data is required from the application, and since the majority won't have the coding skills to do it, it would be nice if it came with the reference client.

  2. luke-jr commented at 12:54 PM on December 30, 2014: member

    That doesn't make sense? What would these methods even do?

  3. ghost commented at 6:47 PM on December 30, 2014: none

    the wallet can currently give you a list of total transactions, but it would be nice to get stats on received and sent tx seperately

  4. luke-jr commented at 11:32 AM on January 1, 2015: member

    Might make more sense to add these to getwalletinfo?

  5. laanwj added the label Wallet on Jan 1, 2015
  6. laanwj added the label Feature on Jan 1, 2015
  7. laanwj renamed this:
    RPC request feature
    wallet RPC to get in/out transaction count
    on Jan 1, 2015
  8. ghost commented at 4:49 PM on January 1, 2015: none

    Makes sense, yes.

  9. luke-jr commented at 5:12 PM on January 1, 2015: member

    Note: This would currently require counting every single transaction.

  10. ghost commented at 10:12 PM on January 3, 2015: none

    doesn't list transactions already count every tx? this would be a more detailed response.

  11. sipa commented at 1:25 AM on January 4, 2015: member

    How is it more detailed if you can already derive the result from listtransaction's output?

  12. ghost commented at 4:47 PM on January 4, 2015: none

    listtransactions output is just the TOTAL, the request is for a separate count that tells me how many sent and how many received. I think with accounts going out and more emphasis on one time use of addresses, this is something worth thinking about .

  13. sipa commented at 4:53 PM on January 4, 2015: member

    My point is that listtransactions already lists the incoming and outgoing transactions - you can compute the counts by just looking at the output of it. So it is not 'more detailed'.

  14. ghost commented at 7:04 PM on January 4, 2015: none

    i'm asking for something like this to be added to getwalletinfo

    21:01:25  getwalletinfo

    21:01:25  { "walletversion" : "balance" : "txcount" : , "txincount": "txoutcount": "keypoololdest" : "keypoolsize" : }

    or something along those lines.

  15. laanwj closed this on May 18, 2015

  16. MarcoFalke locked this on Sep 8, 2021
Contributors

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-17 15:15 UTC

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