BOMBARCHIVE
Explore

A living reference collection. Written in the wiki, preserved in Git.

The archiveOrdinals

Inscription metadata

Inscription metadata is the optional CBOR-encoded data carried in field tag 5 of an Ordinals inscription. It allows a creator to associate structured information with an inscription without making that information part of the inscription's content body. The field has a defined location and encoding, but no universal schema for its contents. The difference is central to its history. Ordinals metadata handbook — first-party specification · Properties handbook — first-party comparison

The field and its bytes

An inscription envelope contains an ord protocol marker, tagged fields and, optionally, a content body. The metadata field is an odd-numbered tag whose value is CBOR, a binary data-interchange format. It is not a JSON body, and an inscription need not contain a metadata field at all. Inscription envelope field table · Metadata specification

A schematic envelope containing a two-part metadata payload looks like this:

OP_FALSE
OP_IF
  OP_PUSH "ord"
  OP_PUSH 0x05
  OP_PUSH <first CBOR fragment>
  OP_PUSH 0x05
  OP_PUSH <second CBOR fragment>
  OP_PUSH 0
  OP_PUSH <optional body bytes>
OP_ENDIF

This is an illustrative layout, not a transcription of a particular Bitcoin transaction. OP_PUSH 0x05 means pushing the tag's byte value; it should not be confused with the Script integer opcode OP_5. Each individual pushed data element is subject to Bitcoin Script's 520-byte size limit. ord concatenates successive tag-5 value fragments before attempting CBOR decoding. The first implementation's parser tests explicitly cover that concatenation. Original merged implementation and tests

The separately tagged content type (1), metadata (5), metaprotocol identifier (7) and schema-constrained properties (17) have different jobs. In particular, a JSON file inscribed as the body is not the same thing as CBOR bytes in tag 5. Metaprotocol state machines may interpret either kind of carrier according to their own rules; Bitcoin consensus validates neither a metadata schema nor those higher-layer rules. Current inscription field specification · Metaprotocols

The current handbook's odd/even rule says that an unrecognized odd field can be ignored without changing an inscription's assignment to a sat. This is a compatibility convention of the Ordinals interpretation, not a Bitcoin consensus allocation of metadata keys. The history of earlier parser versions still matters for unusual envelopes. Inscription field compatibility rules

What the original tools did

The ord 0.10.0 wallet accepted metadata through two mutually exclusive options: --cbor-metadata read a CBOR file and checked that it could be decoded, while --json-metadata read a JSON file and converted its value to CBOR before inscribing. Thus a creator could author a map in JSON while still publishing CBOR in tag 5. The source also supported metadata within batch-inscription definitions. These are properties of the inspected 0.10.0 tooling, not a claim that all third-party inscribers used it. Tagged wallet implementation

The metadata handbook describes displaying CBOR primitives as text, byte strings as hexadecimal, arrays as lists and maps as key/value definition lists. It warns that exotic CBOR values and encodings may fail to display correctly. Rendering a value for a person is not the same task as validating it against an agreed application schema. First-party metadata display documentation

One historical wrinkle is worth keeping visible. Casey Rodarmor's November 2023 Jubilee-bounty issue explicitly listed inscriptions with metadata longer than 520 bytes among desirable constructions that earlier ord versions had treated as cursed. The present concatenation rule should therefore not be read backward as proof that every earlier indexer recognized every chunked envelope identically. See Cursed inscriptions. Contemporary maintainer explanation

From proposed key/value fields to CBOR

7–8 Mar 2023
An early pull request titled “inscription metadata” (#1891) was opened and closed without merging. A second March proposal (#1899) suggested adding a string argument to ord wallet inscribe; it also closed unmerged. These show demand for descriptive inscription data, not a shipped tag-5 specification. PR #1891 · PR #1899
27 Apr 2023
Issue #2053 proposed named key/value properties directly in inscription data. Its illustrative alternating OP_5/OP_7 key/value pushes were **not** the eventual format. The later implementation explicitly cited this issue, establishing a design connection rather than merely a similar idea. Original proposal
31 May 2023
PR #2134, “Add arbitrary metadata to inscription”, opened. It ultimately closed unmerged on 3 October, the date a different implementation merged. This is proposal history, not evidence of an additional release. Repository record
4 Sep–3 Oct 2023
PR #2421, “Inscription metadata”, was opened on 4 September and merged on **3 October 2023, 19:57 UTC**. Its description says “Add metadata, based on #2053.” Commit 26a755fe introduced the tag-5 parser, CBOR tooling, wallet flags, tests and documentation. The actual design stores a CBOR value, rather than repeating one field for each named property. Merged pull request · Direct implementation record
24 Oct 2023
ord **0.10.0** became the first tagged release listing CBOR metadata support. Its changelog is headed 23 October; GitHub records release publication on **24 October at 04:04:54 UTC**. The same release listed the separate metaprotocol field (tag 7). Tagged release · Tagged changelog
1–8 Nov 2023
PR #2604 merged the /r/metadata/<INSCRIPTION_ID> recursive route on 1 November; it shipped in **0.11.0**, whose changelog is dated 7 November but whose GitHub release was published **8 November 2023**. This supplied inscription code a way to fetch metadata separately from content. Merged endpoint PR · Release record · Dated changelog
19 Dec 2024
When revisiting collections in issue #4140, Rodarmor explicitly considered using the existing tag-5 CBOR metadata for galleries, but identified the danger of colliding with an existing gallery key. He proposed alternatives including a new tag or a versioned schema. This is a contemporary record of the interoperability problem, not an assertion that the proposed schema-version switch shipped. Gallery design discussion
2025
ord 0.23.0 shipped galleries using the separate properties tag 17; 0.24.0 subsequently added attributes and structured traits. The free-form metadata field remained available alongside them. See Inscription properties for the fuller release and encoding history. Gallery release · Attributes release

Earlier Counterparty references: CIP-25

Before ord added tag-5 CBOR, a different kind of metadata relationship appeared in Counterparty. On 8 February 2023, CIP-25 added a proposed ord:CODE asset-description format identifying an Ordinals reveal transaction containing an image or JSON file. The Counterparty asset's description would point to an inscription; it did not create an inscription metadata field or authenticate a relationship to the referenced creator. The CIP remained a draft, and independent explorer adoption has not been established. Exact February commit · Inscription provenance

Earlier community proposals: OIP-01

The independent Ordinal Theory Improvement Proposals repository began on 6 June 2023, before ord added tag-5 CBOR metadata. Its OIP-01 proposed a second ord envelope carrying JSON in the same reveal script as the main inscription. OIP-01 deliberately left the JSON vocabulary unspecified; it is not the same format as tag 5. June 2023 OIP-01 — original proposal

There is a versioned-source correction to the proposal's compatibility explanation. OIP-01 said an unaware ord reader would ignore envelopes after the first. But ord 0.6.0, released 4 June 2023, already included tests named do_not_ignore_inscriptions_after_first and extract_from_second_envelope, expecting two sequential envelopes to be recognized. That establishes a parser-level contradiction, without proving that any particular wallet displayed both inscriptions or that an OIP-01 mainnet artifact was used. Ordinal Theory Improvement Proposals preserves the wider proposal record. Versioned parser and tests · Release

The namespace problem

The 2024 gallery discussion is unusually candid about why this distinction matters. If an application decides that a top-level CBOR map key called gallery has a new, universal meaning, it could reinterpret older inscriptions that already used that name for something else. The underlying bytes are perfectly preserved; their meaning is not automatically protected from a naming collision. First-party design discussion

An independent response to this problem appears in Open Ordinal Metadata (OOMD). Its repository dates to September 2024 and proposes typed application vocabularies, optionally nested under keys such as release and book, to reduce collisions when one inscription describes several kinds of content. Notably, its documentation allows unwrapped properties for single-protocol metadata, while warning that readers may then need to guess the vocabulary. This is documented prior art for metadata namespacing, not a schema adopted by ord or evidence of broad on-chain use. OOMD design — first-party proposal · Earliest preserved Git commit

The resulting architecture separates three questions:

  • Where is the data? Tag 5 says where an optional CBOR payload is carried.
  • Whose rules interpret it? A collection, project, renderer or metaprotocol can define a vocabulary and validation rules, but other software must know which convention to apply.
  • Does a relationship have authority? Writing another inscription ID into metadata does not prove that its owner or creator consented. Parent-child provenance has a different, transaction-spend-based authorization rule; galleries are explicitly permissionless.

The eventual tag-17 properties system chose schema-defined numerical keys for gallery items, titles and traits instead of retroactively assigning them to arbitrary tag-5 fields. That is a limited interoperability agreement within the ord specification, not a universal semantic rule for every application using inscriptions. Present properties specification · Contemporary attributes discussion

Recursion: bytes before interpretation

The recursive endpoint /r/metadata/<INSCRIPTION_ID> returns a JSON string containing hexadecimal CBOR bytes, not a JSON object whose keys have already been standardized or interpreted. A caller must decode the hexadecimal and CBOR, then decide how the result should be used. This distinction follows the published recursive API contract. Current recursive endpoint documentation · Ordinal recursion

A separate proposal would retrieve ''children's'' metadata in bulk. On 31 March 2026, Switch_900 opened PR #4511 for /r/children/<INSCRIPTION_ID>/metadata, with 100-child pages. Its submitted code returns each child's ID and optional hex-encoded tag-5 CBOR bytes, not an interpreted metadata object; a child without metadata receives null. It uses the indexed parent-child relationship to select children, then parses their reveal transactions to extract the original field. As of 30 October 2026, the PR remained open and unmerged and was absent from the published recursion endpoint list. This is a proposed convenience for inspecting child inscriptions, not a new metadata schema or a deployed recursive API. Proposed endpoint and tests — direct repository record · Reference recursion documentation · Ordinal recursion

The first-party handbook's examples point to FUN collection members with descriptive metadata and to an inscription that uses its own metadata during image rendering. Those are curator-supplied examples of use, not an independently reconstructed census or a claim to have identified the earliest tag-5 inscription. Official example catalogue

For indexers, the durable evidence is the original field and its bytes. Decoded values, display HTML, an application's interpretation and any claimed connection to another artifact are subsequent layers. A later reader should be able to say which of those layers it actually verified.

Open research

Open question
Identify the earliest mainnet inscription carrying a valid tag-5 CBOR field using chain evidence, rather than equating the October 2023 merge or release with first use.
Open question
Survey the public metadata conventions and schema registries actually adopted by Ordinals creators. Record who defined each convention, whether it names a metaprotocol, and whether independent readers interpret the same fields compatibly.
Open question
Reproduce historical metadata parsing around large or repeated tag-5 fields across pre-Jubilee and later ord releases; a present-day decode is not sufficient evidence of historical inscription numbering.