Rendering a UNAT

Rendering a UNAT is straightforward, allowing minimal data upload to Bitcoin while delivering high-impact results for platforms.

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

Last updated