> For the complete documentation index, see [llms.txt](https://digital-matter-theory.gitbook.io/digital-matter-theory/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://digital-matter-theory.gitbook.io/digital-matter-theory/introduction/resources/rendering-a-unat.md).

# Rendering a UNAT

<figure><img src="/files/Drnqzx7jAmId48bw7roQ" alt=""><figcaption></figcaption></figure>

**Steps for DMT on-chain preview renderer**

1. Retrieve deploy inscription id from the mint inscription content `https://ordinals.com/content/${MINT_INSCRIPTION_ID}`
2. Fetch inscription data `https://api.hiro.so/ordinals/v1/inscriptions/${deployInscriptionID}`
3. Retrieve deploy sat number `sat_ordinal`
4. Fetch deploy sat data `https://api.hiro.so/ordinals/v1/sats/${deploySatNumber}`
5. Retrieve latest deploy reinscription id from sat data `sat.inscription_id`
6. Fetch latest deploy content `https://ordinals.com/content/${deployLatestID}`
7. Retrieve the "id" field from deploy inscription for the latest preview script
8. Fetch preview script content `https://ordinals.com/content/${previewInscriptionID`
9. Inject recursion by replacing `/content/` strings with desired ord server ex: `https://ordinals.com/content/`
10. To render results place resulting content into an `<iframe>` via the `srcdoc` parameter
