Bitcoin Forum
June 14, 2024, 10:04:59 PM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: « 1 2 [3]  All
  Print  
Author Topic: 1111111111111111111114oLvT2  (Read 762 times)
NotATether
Legendary
*
Offline Offline

Activity: 1638
Merit: 6897


bitcoincleanup.com / bitmixlist.org


View Profile WWW
March 16, 2023, 11:49:08 AM
 #41

Can you explain how to do this?
Depends on your wallet software. With Bitcoin Core, then createrawtransaction has a data field you can specify which will create an OP_RETURN output. In Electrum, you can simply write OP_RETURN followed by the hex encoding of whatever data you want in the address field.

Sorry to raise this question again, but I see that Bitcoin Developer lists this as a required field in the second parameter (which is also required). If I do not want to make an OP_RETURN output, should I just pass a {"data": ""} argument? Or will I get away with leaving the object out, as I've seen Bitcoin Developer examples over here do?

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18587


View Profile
March 16, 2023, 12:12:00 PM
Merited by ABCbits (1)
 #42

Sorry to raise this question again, but I see that Bitcoin Developer lists this as a required field in the second parameter (which is also required). If I do not want to make an OP_RETURN output, should I just pass a {"data": ""} argument? Or will I get away with leaving the object out, as I've seen Bitcoin Developer examples over here do?
Just leave it out. It is "required" only if you want to create a data output. If you don't want a data output, it isn't required and can be left out entirely.
Pages: « 1 2 [3]  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!