← ALL PROPOSALSPROPOSAL 004OP_RETURN
PROVABLY LOSTFINAL
Current51.18002604 BTC · 226,889 outputs · block 975,274
AuthorAnders Brownworth
Created2020-12-18
Scale Estimate~51 BTC (measured at block 974,263)
First Seen in Block247,633

UTXOs with a positive value and scripts beginning with OP_RETURN are unspendable and are classified as Provably Lost.

Abstract

Use of transactions with OP_RETURN outputs is a common way to record arbitrary data in the bitcoin blockchain. While these outputs usually have a value of '0', some consume positive amounts and are by nature unspendable so represent provably lost supply.

Implementation

These UTXOs can be identified by checking to see if script_asm starts with OP_RETURN , and that the output carries a positive value:

output.value_sats > 0 && output.script_asm.startsWith('OP_RETURN ')

The value test is not optional. The overwhelming majority of OP_RETURN outputs are pure data carriers worth 0, which destroy no supply and are therefore not a loss under this proposal — only the minority that consume a positive amount are. Zero-value outputs are not recorded at all.

Example

Transaction 139c004f477101c468767983536caaeef568613fab9c2ed9237521f5ff530afd has the following output:

    {
      value: 0.001,
      n: 1,
      scriptPubKey: {
        asm: 'OP_RETURN d68bdab455902dcc59f4e8f775a59c58ea8ae8f0a6cb7f3b96f8a3cfd84c9af7',
        hex: '6a20d68bdab455902dcc59f4e8f775a59c58ea8ae8f0a6cb7f3b96f8a3cfd84c9af7',
        type: 'nulldata'
      }
    }