The Mechanics of Bitcoin’s Op_return
not-satoshi.com
not-satoshi.com
A user sends a minimal amount of bitcoin to a P2SH address which commits to the hash of a future bitcoin script used to "claim" the bitcoin. That script is "revealed" in a subsequent transaction. The contents of the "script" include dead code that carries content. A recent popular example is the inscriptions[0] that carry NFT data for ordinals. The revealed script is part of the witness data it is carried in a different part of the bitcoin blockchain data structure which makes it prunable in a running node. As a result, the limits are around 500bytes instead of (80+80)bytes per transaction-pair.