[GUI] Way to add an OP_RETURN output(s) to a transaction. #8124

issue da2ce7 opened this issue on May 30, 2016
  1. da2ce7 commented at 2:27 PM on May 30, 2016: none

    When sending a transaction sometimes a user may wish to add a OP_RETURN value to a transaction they are creating.

    There is an 'Add Precipitant' button to add another normal output. I suggest there should be an "add OP_RETURN message" button.

    I think that it should have the option to enter either: hex, unicode utf-8, ascii format.

    I think that this feature should be hidden by default in the same way the coin-control feature is.

  2. jonasschnelli commented at 2:37 PM on May 30, 2016: contributor

    Adding a OP_RETURN output is not something we should encourage/support on the GUI level IMO. There is not even an (non raw) function on the RPC layer.

  3. da2ce7 commented at 2:47 PM on May 30, 2016: none

    I made this issue because this is something that I wanted to do today.

    I wanted to included the hash of something; I was making another transaction anyway, so adding a op-return would have been the most simple.

    But alas, I didn't include this OP_RETURN output since I realised that it would be a pain-in-the-ass to do it with my Bitcoin Core wallet.

  4. luke-jr commented at 3:30 PM on May 30, 2016: member

    NACK, OP_RETURN is not for spam, nor should spam be encouraged or supported.

    But alas, I didn't include this OP_RETURN output since I realised that it would be a pain-in-the-ass to do it with my Bitcoin Core wallet.

    Sounds like exactly the desirable outcome.

  5. da2ce7 commented at 3:38 PM on May 30, 2016: none

    @luke-jr You have absolutely no idea why I wanted to include a hash in a OP_RETURN output.

    Please show me how you could know that this OP_RETURN output indeed was spam; otherwise please withdraw the statement that I wished to spam the network.

    (edit) Unless, of-course, you regard all OP_RETURN outputs with hashes in them as spam; then my apologies.

  6. luke-jr commented at 3:40 PM on May 30, 2016: member

    The comment on encouraging spam related to:

    I think that it should have the option to enter either: hex, unicode utf-8, ascii format.

  7. da2ce7 commented at 4:11 PM on May 30, 2016: none

    Well if you regard there are valid purposes for making custom OP_RETURN outputs; then would not a selection of encodings be helpful.

    Only having one encoding option would be fine also; however that would be inconvenient.

    However, I more fundamentally don't understand you the objection to 'OP_RETURN' being used for spam. OP_RETURN only takes up block space (it isn't expensive to verify, and doesn't create UTXO bloat); something that is far under-priced. If transactions fees are increased to 50c because people are writing messages in the blockchain with OP_RETURN, that would not bother me; nor I suspect, the miners that would get the extra fees.

    I think that it would increase the utility of Bitcoin.

  8. luke-jr commented at 4:25 PM on May 30, 2016: member

    There are no valid purposes I can think of for unicode/ascii OP_RETURN. Block space is a burden for more than just you and miners.

  9. da2ce7 commented at 12:22 AM on May 31, 2016: none

    Block spaces is a largely used finite resource. Users preferring to make OP_RETURN outputs will only compete with other uses of the block chain space.

    Considering that there always be enough spam to fill the remaining space of any block. I think that spam consisting of OP_RETURN is far preferable to junk transactions that are expensive to verify and create UTXO bloat.

    Suggesting that blocks will be more full because of the option to add custom OP_RETURN outputs to transactions is somewhat unreasonable. People who make them quite well could have far more 'valid purposes' than those who spam the network to create false evidence that the block size needs to increase.

  10. midnightmagic commented at 3:56 AM on June 1, 2016: contributor

    The proportion of economic:spam is lopsided the more we encourage or allow OP_RETURN to flourish. OP_RETURN does not make bitcoin valuable; OP_RETURN is not something nearly any full-node operator wants to bear nor did we agree to store OP_RETURN data that did not represent legitimate economic transaction-based activity. It is an error to encourage anyone to do this who can't discover how to do it themselves.

  11. MarcoFalke added the label Feature on Jun 3, 2016
  12. jonasschnelli commented at 9:08 AM on June 21, 2016: contributor

    Closing for now because it seems to be that this feature will be controversial. Feel free to give it a try with a concrete PR.

  13. jonasschnelli closed this on Jun 21, 2016

  14. MarcoFalke 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-17 09:15 UTC

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