Add RPC to set transaction comment #12594

issue GSPP opened this issue on March 4, 2018
  1. GSPP commented at 3:39 PM on March 4, 2018: none

    I'm trying to merge wallet files together using RPC API calls. It seems that it is not possible to edit the label of a wallet transaction. The GUI appears to be able to do this. I request this as a new feature.

    There's a difference between labeling the receive/send address and labeling the transaction. This is because there can be multiple transactions to/from the same address. So there's still a need to label transactions in contrast to simply labeling addresses using the accounts feature.

  2. GSPP commented at 6:46 PM on March 4, 2018: none

    In fact I just found out that it is not possible to use SetAccount on addresses not owned by the wallet. This means that there is no way to set a label to an outgoing transaction through the RPC interface (or any means at all programmatically).

    Maybe SetAccount should allow setting a label? I don't know but there should be a way to label outgoing transactions.

  3. meshcollider added the label RPC/REST/ZMQ on Mar 14, 2018
  4. jnewbery commented at 8:56 PM on April 3, 2018: contributor

    #7729 adds the functionality to set a "send" label on an address that does not belong to the wallet. Please test/review that PR if you want to help get this functionality merged!

  5. promag commented at 9:44 PM on July 27, 2018: contributor

    #7729 was replaced by #12892, see setlabel.

  6. jnewbery renamed this:
    Add RPC to set transaction label
    Add RPC to set transaction comment
    on Aug 3, 2018
  7. jnewbery commented at 2:11 PM on August 3, 2018: contributor

    I've updated the issue description to refer to transaction comment. Labels are associated with addressed. Comments are associated with transactions.

    (Note that the accounts API is deprecated in 0.17 and removed in 0.18. It is replaced by the labels API). @GSPP - is this feature still wanted?

  8. jonasschnelli commented at 7:18 AM on August 4, 2018: contributor

    There is a very old/closed PR of mine that did that on the GUI level (in case someone needs inspiration): https://github.com/bitcoin/bitcoin/pull/5905

  9. GSPP commented at 8:25 PM on August 5, 2018: none

    Yes, this is still wanted. I very much need read and write access to all the wallets data structures for merging them properly.

    To me it seems transactions are lacking a key that can be used to identify them over the API. I have not found any combination of fields that uniquely identifies a transaction. In the case of self transactions there can be almost all fields duplicated including TxID and vout.

  10. pinheadmz assigned pinheadmz on Apr 27, 2023
  11. pinheadmz commented at 7:35 PM on May 3, 2023: member

    @GSPP txid by definition is a unique identifier for a transaction. Comments can be added to new transactions in some RPCs like sendtoaddress and those comments are visible in the GUI. What do you need? The ability to edit a transaction comment in the GUI?

  12. willcl-ark commented at 2:47 PM on April 10, 2024: member

    This issue hasn't had activity in a while and appears to have gone stale so I'm going to close it for now.

    Feel free to open a new issue or comment here if you are still experiencing this problem so we can investigate further.

  13. willcl-ark closed this on Apr 10, 2024

  14. bitcoin locked this on Apr 10, 2025

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