1Sat Ordinals
Getting StartedDiscord
  • Protocol Specification
    • Introduction
    • Terms
    • Resolving Ordinals
      • Rare Sats
    • Test Vectors
  • Fungible Tokens
    • BSV-20
    • BSV-21
  • Public APIs
  • Libraries
  • Text Inscriptions
  • Reference Inscriptions
  • HTML Inscriptions
    • HTML References
  • Metadata
    • Ord Schema Type
    • Collection SubType
    • CollectionItem SubType
    • Signing
    • Location Tagging
    • Bitcoin Schema
  • Handling Large Files
  • Ordinal Lock
  • Managing Unspent Outputs
  • Partially Signed Transactions
  • Common Questions
  • Fair Launch
Powered by GitBook
On this page
  • /content - dynamic content resolution
  • ord:// - On-Chain Inscription References
  • Original inscription by Ordinal Number
  • Specific inscription by Inscription ID
  • #latest - Dynamic Inscription References
  • Latest inscription by Ordinal Number
  • Latest inscription by Inscription ID
  • URL Resolution
  1. HTML Inscriptions

HTML References

Using ord:// and sat:// URL protocol handlers to reference inscriptions.

/content - dynamic content resolution

HTML inscriptions can reference relative file paths to /content/<outpoint> to automatically have the content detected and returned as a file. For more information on how this resolution works under the hood visit ordfs.network.

ord:// - On-Chain Inscription References

You can embed references to other inscriptions inside the on-chain HTML or markdown. You can address.

An ordinal number is the precise satoshi identifier.

Inscription ID is the transaction id, and output index of a specific inscription, formatted as: txid_vout

Original inscription by Ordinal Number

In a text/html inscription:

<img src="ord://ordinalNumber" />

In a text/markdown inscription:

[My Ordinal!]("ord://ordinalNumber")

Specific inscription by Inscription ID

In a text/html inscription:

<img src="ord://inscriptionID" />

In a text/markdown inscription:

[My Ordinal!]("ord://inscriptionID")

#latest - Dynamic Inscription References

Use the #latest fragment to return the latest inscription for a given ordinal number, or inscription ID.

Latest inscription by Ordinal Number

In a text/html inscription:

<img src="ord://ordinalNumber#latest" />

In a text/markdown inscription:

[My Ordinal!]("ord://ordinalNumber#latest")

Latest inscription by Inscription ID

In a text/html inscription:

<img src="ord://inscriptionID#latest" />

In a text/markdown inscription:

[My Ordinal!]("ord://inscriptionID#latest")

URL Resolution

URL
resolves to

ord://ordinalNumber

original inscription

ord://inscriptionID

specific inscription

ord://ordinalNumber#latest

latest inscription

ord://inscriptionID#latest

latest inscription

PreviousHTML InscriptionsNextMetadata

Last updated 1 year ago