We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
OP_RETURN data
OP_RETURN UnspendableData with no lock. Anything at all can follow it; nothing on chain says how to read it.
What it is
An output that starts with OP_FALSE OP_RETURN can never be spent, so it is a safe place to write data. Nodes know it can never be spent and can leave it out of the set of coins they track. Protocols such as B, MAP and AIP give the data a shape by starting it with a known prefix.
Script pattern
-
OP_FALSEPuts false on the stack, so the output can never be spent. -
OP_RETURNEnds the script. What follows is data. -
<data> …Any number of pushes, in any format.
How it is spent
It cannot be spent. Any sats sent to it are gone for good.
Background
Bitcoin made small OP_RETURN outputs standard in 2014, so people would stop hiding data in fake addresses. BSV later lifted the size limit, which made whole files on chain practical. A plain OP_RETURN before OP_FALSE was added could be spent in some cases; OP_FALSE OP_RETURN rules that out.
On chain
Examples coming. They come from the blocks we have typed, and no typed block holds one yet.
Specification
- OP_RETURN on the Bitcoin SV wiki
- /api/v1/types/op-return
- /api/v1/txs?type=op-return every stored tx of this type, newest first, with an API key or signed in.