Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.19 KB

reference-inscriptions.md

File metadata and controls

39 lines (27 loc) · 1.19 KB
description
Inscribe references to content by URI

Reference Inscriptions

You can inscribe references to on-chain content using the text/uri-list content type defined here:
https://www.rfc-editor.org/rfc/rfc2483#section-5

Examples

# This is a comment
https://mydomain.com/something.pdf

In this example we reference a JSON inscription. The file extension is useful for hinting before the content has been loaded, allowing clients to make UI decisions sooner (like choosing the correct component to render the content).

Thanks to ord-fs we can reference any b:// c:// or ord:// content by relative path:

# This is an image inscription
/content/<outpoint | contentHash>.png

For more information on how ord-fs renders content, visit ordfs.network.

Multiple Files

You can also reference many files in a single text/uri-list inscription:

/content/<outpoint1>.html
/content/<outpoint2>.js
/content/<outpoint3>.webp
/content/<outpoint4>.css

In this example we can make the contents of a webpage and all of its dependencies available as a single package.