Metadata
Metadata is located after the OP_RETURN
opcode in the output script of an inscription, and does not interefere with the inscription protocol.
You can use metadata to add context to ordinals. For example, you can tag an ordinal with collection data, geohashes, external file references, etc. Metadata is written using "Magic Attribute Protocol" which has a prefix of 1PuQa7K62MiKCtssSLKy1kh56WWU7MtUR5
.
(TODO: Find better example using more typical case)
Notice we do not use OP_FALSE OP_RETURN. This is important as omitting OP_FALSE allows us to spend the output.
In the above example, we geotag an ordinal with a location using Magic Attribute Protocol.
Schema Types
To help standardize consumption of this data, we define schema types to establish common field names to be shared cross platforms. While schema type cover a broad range of use cases, this document refers the Ordinals schema type ord
.
Other Metadata
BSV has several protocols for tagging on-chain data that pre-date Ordinals. 1Sat Ordinals can be extended using many existing protocols during inscription, or even to tag the sat as it is spent. This enables things like minting files > 10MB, attaching metadata to inscriptions, creating collections, and signing with identity keys.
You can still add metadata from other schema types besides "ord" if you prefer. You can find a list of different schema typesa at https://bitcoinschema.org.
Similarly, you can attach an ordinal to a particular url:
Last updated