Including OP_RETURN in transactions

Helllo, I am able to send basic transcations but I would like to know if I can include a transaction input to reference a file hash stored on IPFS.

Hi Albert,

OP_RETURN is more of a bitcoin-related concept. What you could do on Ethereum would be to hex-encode the hash, and store it in the data field of the transaction. If you look at the RawTransactionManager#sendTransaction method, you’ll notice a string parameter for the data to send.

Let me know if you have any other questions,
Josh

Thank you. I followed your instructions and successfully added input data. Here is the txHash: 0x1dde9dd884f3f8f5e5051c35de1880f35f360f731a41a6088152a465cb122033 . It was deployed on rinkeby.