Bitcoin Forum
June 23, 2024, 05:09:05 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Createrawtransaction  (Read 913 times)
hack_ (OP)
Hero Member
*****
Offline Offline

Activity: 501
Merit: 503


View Profile
April 28, 2016, 03:11:30 PM
Merited by ABCbits (1)
 #1

How can I use createrawtransaction to add data to a transaction?

For example the date/time and my name?
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3430
Merit: 6720


Just writing some code


View Profile WWW
April 29, 2016, 12:35:39 AM
 #2

When you get to the output section, instead of doing "address":amount, do "data":"hex" where data is the word 'data' and hex is the hex of whatever data you want to encode. You will get up to 80 bytes of data.

smaxz
Sr. Member
****
Offline Offline

Activity: 430
Merit: 253


VeganAcademy


View Profile
April 30, 2016, 01:23:47 PM
 #3

When you get to the output section, instead of doing "address":amount, do "data":"hex" where data is the word 'data' and hex is the hex of whatever data you want to encode. You will get up to 80 bytes of data.

hey thats easier than i thought, thanks for this.

- NGdTwHRSdnThdi1drQuHGT3khAHRtZ1HMq -
Pages: [1]
  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!