B:// file

B:// Unspendable

A file on chain: the data, its media type, its encoding and an optional name, under the B prefix.

What it is

B is a Bitcom protocol for storing a file in an OP_RETURN output. Its prefix is a Bitcoin address, 19HxigV4QyBv3tHpQVcUEQyq1pzZVdoAut, and the fields after it are fixed in order. Any page or app can then load the file by its transaction id.

Script pattern

  1. OP_FALSE OP_RETURN A data output.
  2. "19HxigV4QyBv3tHpQVcUEQyq1pzZVdoAut" The B prefix.
  3. <data> The file's bytes.
  4. <media type> Such as image/png or text/markdown.
  5. <encoding> Such as binary or utf-8.
  6. <filename> Optional.
  7. "|" … Optional: a pipe, then another protocol such as MAP or AIP.

How it is spent

It cannot be spent.

Background

unwriter published B in 2019 as one of the first Bitcom protocols, alongside tools that served B files straight to the browser. It became the common way to put images, pages and media on chain, and other protocols pipe into it.

On chain

Transactions our protocol detector tagged B://. Transaction pages need sign-in.

Specification