Bitcoin Forum
December 12, 2024, 08:13:25 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Sending messages to the blockchain with a bitcoin transaction.  (Read 1566 times)
No_2 (OP)
Hero Member
*****
Offline Offline

Activity: 906
Merit: 1034


BTC: the beginning of stake-based public resources


View Profile
June 30, 2014, 05:06:41 PM
 #1

I thought that one could optionally send a short message (40 bytes) to be written to the blockchain with a valid transaction.

If it's possible how do I do this?

EcuaMobi
Legendary
*
Offline Offline

Activity: 1876
Merit: 1475



View Profile
June 30, 2014, 05:08:49 PM
 #2

It is possible, but as far as I know UI clients normally don't write or read that message.

You can read more about it here:
http://www.proofofexistence.com/about
No_2 (OP)
Hero Member
*****
Offline Offline

Activity: 906
Merit: 1034


BTC: the beginning of stake-based public resources


View Profile
June 30, 2014, 05:18:17 PM
 #3

Does anyone know if there is a way to write the message from the Bitcoin-QT command line interface then?
DannyHamilton
Legendary
*
Offline Offline

Activity: 3514
Merit: 4894



View Profile
June 30, 2014, 07:34:11 PM
 #4

Does anyone know if there is a way to write the message from the Bitcoin-QT command line interface then?

It's not supported by the Bitcoin-Qt command line interface.

You need to build a raw transaction using the OP_RETURN op code in an output with the message that you want.

Then you can use signrawtransaction and send rawtransaction to send the transaction and hope that a miner will confirm it for you.
jbrnt
Hero Member
*****
Offline Offline

Activity: 672
Merit: 500



View Profile
June 30, 2014, 07:56:30 PM
Last edit: June 30, 2014, 08:27:48 PM by jbrnt
 #5

I am sure you can write a short message in a transaction using blockchain.info wallet. You may not want to use their online wallet, that's how I do it.

Edit: DannyHamilton has informed me that the message attached with the transaction written by blockchain.info wallet is NOT broadcasted to the blockchain and no other client can read the message. Thanks DH!
cp1
Hero Member
*****
Offline Offline

Activity: 616
Merit: 500


Stop using branwallets


View Profile
June 30, 2014, 07:58:05 PM
 #6

You can also encode a message as the address, but that won't associate the message with a "real" transaction.

Guide to armory offline install on USB key:  https://bitcointalk.org/index.php?topic=241730.0
DannyHamilton
Legendary
*
Offline Offline

Activity: 3514
Merit: 4894



View Profile
June 30, 2014, 08:14:28 PM
 #7

I am sure you can write a short message in a transaction using blockchain.info wallet. You may not want to use their online wallet, that's how I do it.

Blockchain.info does not put messages in the transactions.

They just store messages in their own database and make them available on their website.  They are not broadcast with the transaction, they are not stored in the blockchain, and they are not visible to any other wallets.
No_2 (OP)
Hero Member
*****
Offline Offline

Activity: 906
Merit: 1034


BTC: the beginning of stake-based public resources


View Profile
June 30, 2014, 08:43:25 PM
 #8

It's not supported by the Bitcoin-Qt command line interface.

You need to build a raw transaction using the OP_RETURN op code in an output with the message that you want.

Then you can use signrawtransaction and send rawtransaction to send the transaction and hope that a miner will confirm it for you.

Thanks for this; can you point me somewhere where I can read up on how to do this?
DannyHamilton
Legendary
*
Offline Offline

Activity: 3514
Merit: 4894



View Profile
June 30, 2014, 08:46:20 PM
 #9

It's not supported by the Bitcoin-Qt command line interface.

You need to build a raw transaction using the OP_RETURN op code in an output with the message that you want.

Then you can use signrawtransaction and send rawtransaction to send the transaction and hope that a miner will confirm it for you.

Thanks for this; can you point me somewhere where I can read up on how to do this?

Transaction structure:
https://en.bitcoin.it/wiki/Transactions

Script Op codes:
https://en.bitcoin.it/wiki/Script
No_2 (OP)
Hero Member
*****
Offline Offline

Activity: 906
Merit: 1034


BTC: the beginning of stake-based public resources


View Profile
July 08, 2014, 06:05:24 PM
 #10


Thanks for this. Is there any application or scripting framework you could point me at to do this so I don't have to write my own software to broadcast a transaction with a message in it.
micaman
Sr. Member
****
Offline Offline

Activity: 345
Merit: 500



View Profile WWW
July 08, 2014, 06:33:01 PM
 #11

Although i'm not aware of any script that would allow you to do that, i find this article very interesting and detailed:
http://www.righto.com/2014/02/ascii-bernanke-wikileaks-photographs.html

This site reads existing messages on the blockchain:
http://bitcoinstrings.com/

Hope it helps, good luck.
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!