How to store a message in the bitcoin blockchain

inthebitcoin
Mar 5, 2016 · 4 min read

Below is a step by step guide how to store a message in the bitcoin’s blockchain using inthebitcoin.com service. In this post I will show you how to store birthday wishes for someone.

After putting inthebitcoin.com in the browser bar you will see a simple form with just a single input to put your message in. The current theme is St. Patrick’s Day, and users are encourage to store messages which has something to do with that day, but we can store any message we want.

Image for post
Image for post

After crafting the best wishes we press Record it forever. On the second screen we see our message and some payment options. At the moment of writing this post there are two options to pay for the service. First we can use a coupon to store the message for free. Information about such coupons is posted on inthebitcoin social channels. Unfortunately at this moment no coupons are available and storing our message is going to cost us 0.0022 BTC which is about $0.89 — not bad for an original birthday card ;-)

Image for post
Image for post

There is an optional email input which for someone light-minded like myself might be quite important. I’m going to explain why a bit later in the post, but now let’s press Save.

Image for post
Image for post

On the third screen we see the payment detail and a what is called a status link. This link is quite important as it is the only way to check the status of our message. If you provided an email address a step earlier you have nothing to worry about as you will receive an email notification at the moment your message will land in the blockchain. However if you did not provide an email you better store this link in the safe place.

Lets make the payment. I will use the classic bitcoin core client.

Image for post
Image for post

Lets choose fast confirmation time and confirm the payment.

Image for post
Image for post

Payment done. Now we just have to wait for an email notification or visit the status link from time to time to check how is our message doing. As we did not provide an email address lets look at the status page.

At the beginning as our payment did not make it yet the status page looks like:

Image for post
Image for post

After a while the status will change. In normal conditions it should take no more than 30 min. The exact time can not be predicted and depends on few factors like the current condition of the bitcoin network and the fee we’ve chosen to give away with our transaction. In rare cases it could take up to few hours.

Image for post
Image for post

Waiting… waiting… BANG !!!

Image for post
Image for post

Few minutes later

Image for post
Image for post

Few minutes later

Image for post
Image for post

This is the final status page.

Image for post
Image for post

The message ended up in the block we can now share the link with our good friend or even better we can share the video. :)

https://inthebitcoin.com/13HgoGKVU3HQFbbyJRTFodmSr3VTb6eui9.mp4

Verification TLTR

Lets verify that the message is really there. For this I’ll use the chain.so page. On the final status page inthebitcoin.com gives us a transaction id/ids. This are transactions used to store our message. In our case as our message was quite short there is only one transaction. Lets look at the details.

Image for post
Image for post

We can see our message stored there. But how exactly it was stored? In the input output scripts section we can see one OP_RETURN script. The decoded value of the script contains the message.

Image for post
Image for post

I hope you liked my tutorial and now you are going to store a lot of messages forever in the blockchain.

Here another tutorial how to certify digital assets in the blockchain

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store