4,140 questions
4,353 answers
5,694 comments
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.