<p>The traditional way to store data is via an OP_RETURN. On Bitcoin, this is limited to 40 bytes of data. Bitcoin Cash increased this limit to 220 bytes just yesterday.</p>

<p>You can also store arbitrary data (more or less) on ethereum via a smart contract.</p>

<p>Traditionally, for this kind of use case, people opt to store the hash of the data instead of the raw data itself. They can then provide the raw data to someone, who can hash it and verify that it matches the hash that was stored on the blockchain.</p>

CC BY-SA 4.0
2018-05-16T10:08:45.163Z
2018-05-16T10:08:45.163Z
Raghav Sood
<p>A way to embed data in the blockchain may be using the <a href="https://github.com/OmniLayer/spec/blob/master/README.md#class-b-transactions-also-known-as-the-multisig-method" rel="nofollow noreferrer">Class B transactions</a> Use the tool on <a href="http://www.righto.com/2014/02/ascii-bernanke-wikileaks-photographs.html" rel="nofollow noreferrer">this website</a> or <a href="https://github.com/cashaddress/FileInDaChain/blob/master/main.go" rel="nofollow noreferrer">my tool</a>.</p>

<p>Keep in mind that it's not viable to do that on the Bitcoin blockchain.</p>

<p>If you're looking for "proof of existence" or "proof of authenticity", use Raghav's suggestion.</p>

CC BY-SA 4.0
2018-05-17T12:53:58.403Z
2018-05-17T12:53:58.403Z
MCCCS
<p>I want to store the data on blockchain so that people can see and verify the data. The data format will be a simple JSON like the user details.</p>

<pre><code>{'user_id': userid, 'amount': amount, 'product_id': productId, 'place_id':place'}
</code></pre>

<p>Is there any way to store the above data in blockchain so that people can verify their details that are not manipulated?</p>

<bitcoin-core><blockchain><bitcoind>
How to store data on blockchain?
merklexy
# How to store data on blockchain?

(Asked by: username_0 on 2018-05-16)

I want to store the data on blockchain so that people can see and verify the data. The data format will be a simple JSON like the user details.
{'user_id': userid, 'amount': amount, 'product_id': productId, 'place_id':place'}

Is there any way to store the above data in blockchain so that people can verify their details that are not manipulated?

**Tags:** bitcoin-core, blockchain, bitcoind


---

## 2 answers

### Answer by username_1 on 2018-05-16. Score: 1

The traditional way to store data is via an OP\_RETURN. On Bitcoin, this is limited to 40 bytes of data. Bitcoin Cash increased this limit to 220 bytes just yesterday.

You can also store arbitrary data (more or less) on ethereum via a smart contract.

Traditionally, for this kind of use case, people opt to store the hash of the data instead of the raw data itself. They can then provide the raw data to someone, who can hash it and verify that it matches the hash that was stored on the blockchain.


---

### Answer by username_2 on 2018-05-17. Score: 0

A way to embed data in the blockchain may be using the [Class B transactions](https://github.com/OmniLayer/spec/blob/master/README.md#class-b-transactions-also-known-as-the-multisig-method) Use the tool on [this website](http://www.righto.com/2014/02/ascii-bernanke-wikileaks-photographs.html) or [my tool](https://github.com/cashaddress/FileInDaChain/blob/master/main.go).

Keep in mind that it's not viable to do that on the Bitcoin blockchain.

If you're looking for "proof of existence" or "proof of authenticity", use Raghav's suggestion.


---

