OP_RETURN is barely restricted to 80 bytes by Bitcoin Core’s default standardness guidelines. Some individuals enhance this restrict utilizing the -datacarriersize
possibility. Different individuals have been working Peter Todd’s “Libre Relay” patch that removes this and different standardness limits, and routinely connects to different nodes working the patch. In consequence, many transactions that exceed this restrict have been mined recently, so that you won’t really need to plot a method round it.
Furthermore, OP_RETURN is certainly one of solely a handful of normal output script templates. Placing <knowledge> OP_DROP
into the output script will make it non-standard by Bitcoin Core’s (and most different implementations’) guidelines. What you really need is to place it right into a script that is revealed in an enter, i.e. a P2WSH witness script or a P2TR leaf script. Doing it this manner additionally means your knowledge makes use of the low cost on witness knowledge.
Nevertheless, <knowledge> OP_DROP
remains to be barely suboptimal in the event you’re seeking to push something massive. The most important push dimension allowed by consensus guidelines is 520 bytes, so that you’d want to separate your knowledge into chunks of 520 bytes like <knowledge> OP_DROP <knowledge> OP_DROP ...
, requiring a number of drop opcodes. A extra environment friendly method is OP_FALSE OP_IF <knowledge> <knowledge> ... OP_ENDIF
, typically often called the “inscription envelope” because it was popularized by ordinal inscriptions. (Be aware that there is at the moment a motion to make this particular sample non-standard by default; how doubtless it’s to succeed I’ll go away as an train for the reader.)