Bitcoin Forum
May 05, 2024, 09:55:41 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: [WTB] Teach me to manually create an OP_RETURN tx  (Read 6231 times)
mcliu
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
August 16, 2016, 06:02:24 AM
 #21

So instead of entering a receiving address and an amount one would enter '{"data":40_bytes}' ?

Yes, basically it comes down to this. Smiley

Here is an example:

1. First, I list unspent outputs of the address I'm going to use.

Code:
bitcoin-cli listunspent 0 999999 '["1BxtgEa8UcrMzVZaW32zVyJh4Sg4KGFzxA"]'


..........


5. Here is the result:

https://live.blockcypher.com/btc/tx/b394e47f8141f725f25854d57e91fb67d91782dbe581b2f449990ba25a116d2d/

Wink

I have a problem trying to decode the data back
Is there any way I can see the data I added while creating raw transaction without using this website?  --> https://live.blockcypher.com/btc/tx/b394e47f8141f725f25854d57e91fb67d91782dbe581b2f449990ba25a116d2d/
1714902941
Hero Member
*
Offline Offline

Posts: 1714902941

View Profile Personal Message (Offline)

Ignore
1714902941
Reply with quote  #2

1714902941
Report to moderator
No Gods or Kings. Only Bitcoin
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714902941
Hero Member
*
Offline Offline

Posts: 1714902941

View Profile Personal Message (Offline)

Ignore
1714902941
Reply with quote  #2

1714902941
Report to moderator
1714902941
Hero Member
*
Offline Offline

Posts: 1714902941

View Profile Personal Message (Offline)

Ignore
1714902941
Reply with quote  #2

1714902941
Report to moderator
dexX7
Legendary
*
Offline Offline

Activity: 1106
Merit: 1024



View Profile WWW
August 31, 2016, 08:39:38 PM
 #22

I have a problem trying to decode the data back
Is there any way I can see the data I added while creating raw transaction without using this website?  --> https://live.blockcypher.com/btc/tx/b394e47f8141f725f25854d57e91fb67d91782dbe581b2f449990ba25a116d2d/

In Bitcoin Core, you can use:

Code:
bitcoin-cli getrawtransaction <txid> 1

However, the data then isn't shown isolated, but embedded in an output script. And since it's hex, you may also need to decode it.



By the way, thanks a lot for the one sending 0.0518131 BTC to my tip address posted in this thread! Smiley

https://live.blockcypher.com/btc/tx/d73a543383bcfe62fa86e8624f06a1fdcafd3a1018a9c3feb709318b1c60e7fd/

Bitcoingirly123
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
June 26, 2020, 08:55:57 PM
 #23

Here's a straightforward and simple guide how to do it

https://btcleak.com/2020/06/26/guide-push-any-data-on-to-the-blockchain-forever/

Yeah, I know I bumped a 4 year old thread Cheesy
Pages: « 1 [2]  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!