Post
Topic
Board Development & Technical Discussion
Merits 4 from 4 users
Re: What exactly is the maximum message length in OP_RETURN?
by
achow101
on 18/06/2025, 18:04:22 UTC
⭐ Merited by garlonicon (1) ,ABCbits (1) ,vapourminer (1) ,Mia Chloe (1)
There are no consensus restrictions on outputs, other than the overall block weight limit. An output can contain any opcodes, even invalid ones, and it can contain an unlimited number of them, until the block weight limit is reached. The only time an output script has any consensus validation done on it is when it is being spent.

Within the standardness rules, the upcoming v30.0 Bitcoin Core release removes the limit by default. Of course, the actual size is still bound by the transaction weight limit standardness rule of 400000 weight units, and the block weight limit if standardness is being bypassed.