Author

Topic: How to create op_return transaction in electrum? (Read 342 times)

brand new
Activity: 0
Merit: 0
November 05, 2018, 05:03:07 AM
#8
Can you provide an example on how to use pay_to to store a string? I am not sure how to do it. Thanks!
member
Activity: 266
Merit: 42
The rising tide lifts all boats
you can enter script in the payto field on the send tab. so just enter your opcodes there.
Didn't know this, thanks!
I probably used a lot more difficult way. The article hasn't been written (about my way), and it was a while ago.
Next time I need OP_RETURN I will try payto.
legendary
Activity: 3682
Merit: 1580
you can enter script in the payto field on the send tab. so just enter your opcodes there.
newbie
Activity: 6
Merit: 0
Hi flexiroute,

if you still need this knowledge I may write a short article about this if there's enough interest.

To be short, you create an usual tx in Electrum, export it to file as "hex", edit it in some way,
check with deserialize() in console, edit again until you are happy with the result, signtransaction(), broadcast()

It's important not to burn coins that you didn't intend to burn, and not to give away too much to the miner in the process :=)

can you share the article's Url
newbie
Activity: 1
Merit: 0
if you still need this knowledge I may write a short article about this if there's enough interest.

Google brought me here because I was interested.
member
Activity: 266
Merit: 42
The rising tide lifts all boats
Hi flexiroute,

if you still need this knowledge I may write a short article about this if there's enough interest.

To be short, you create an usual tx in Electrum, export it to file as "hex", edit it in some way,
check with deserialize() in console, edit again until you are happy with the result, signtransaction(), broadcast()

It's important not to burn coins that you didn't intend to burn, and not to give away too much to the miner in the process :=)
legendary
Activity: 3472
Merit: 10611
addresses starting with "bc1" have nothing to do with OP_Return. these addresses are the new format known as Bech32[1] which are used for SegWit transactions.

as for OP_Return, the transaction you posted here has been dropped from mempool apparently so i can't see what it was. but you can see examples of it here: https://www.smartbit.com.au/op-returns

as for creating them with Electrum, i don't know any easy way of doing it apart from creating them elsewhere and then just using Electrum for signing the final transaction. be careful with these things if you are not familiar with them.

[1] https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki
newbie
Activity: 3
Merit: 0
I was browsing coinsecrets.org and I came up with this type of tx https://blockchain.info/tx/84566b60c48fcf3098c58864c341c9da63aecaeda7002143d717cc5aea78d9b8
The addresses start with "bc1q"
I just wanted to know how to construct these type of transactions?
How to create OP_RETURN transactions in electrum?
Jump to: