Thursday, November 24, 2022
HomeBitcoinscript - What's OP_RETURN_252?

script – What’s OP_RETURN_252?

What’s OP_RETURN_252?

Here is my guess:

The enter in a coinbase transaction is meaningless. The enter’s unlocking script (scriptSig) can by no means be executed. So it’s by no means checked for validity. It’s only utilized by miners, as a byte array, to document some personal info which has no objective for the remainder of the Bitcoin community (however see observe beneath about BIP34 top in coinbase).

Opcodes between 185 (OP_NOP10) and 253 (OP_PUBKEYHASH) are undefined.

I believe the parser utilized by the web site has foolishly been requested to supply a disassembled opcode interpretation of the bytes in a meaningless locking script in an enter in a coinbase transaction. It arbitrarily assigns the fictional title OP_RETURN_186 by means of OP_RETURN_252 to bytes within the vary 186-252 which happen at some extent in a script the place an opcode could be anticipated in a non-coinbase unlocking script.

I assume they selected names starting with OP_RETURN, and making these codes a sort of synonym of OP_RETURN, in order that the beleaguered parser is relieved of any obligation to parse the next bytes.

I’d ignore the gibberish produced by for a coinbase enter.

Is there some official documentation about these someplace?


Partly as a result of Bitcoin has no officers to officiate official lists.

Coinbase enter

(Notes from feedback by PW imported right here for better prominence)

Coinbase inputs usually are not scripts – they’re simply byte arrays. They’re by no means executed, so it would not really matter that they include gibberish.

Coinbases should have precisely one enter (no thought why, it is only a rule that has at all times existed), and since BIP34 (height-in-coinbase, launched in 2012), the coinbase enter’s scriptSig should begin with the script bytes comparable to pushing the block’s top onto the stack. The bytes after that push are nonetheless allowed to be gibberish nevertheless. There’s additionally a rule that has at all times existed that the coinbase enter scriptSig should be at most 100 bytes lengthy (and at the least 2, although that is implied now by its top push).



Please enter your comment!
Please enter your name here

Most Popular

Recent Comments