Storage of data

+2 votes
I've seen mention of 8MB transactions being stored, how is this effected? Is the OP_RETURN the only way to store data in the chain?

Thanks again,

asked Feb 23, 2016 by insecureabnormality

1 Answer

0 votes

Yes, OP_RETURN is the correct way to store arbitrary data in a blockchain transaction. You can use APIs like sendwithmetadata or appendrawmetadata to make it easier to build transactions with OP_RETURN.

answered Feb 23, 2016 by MultiChain
Note the current alpha has a hard-coded limit of 1 MB for the max OP_RETURN size (max-std-op-return-size parameter). This will be raised to 8 MB in the next alpha (17).