Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support displaying Unique Non-Arbitrary Token (UNAT) inscriptions #5840

Open
MetaZoneio opened this issue Sep 3, 2024 · 0 comments
Open
Labels
area:bitcoin area:collectibles Issues related to non-fungible tokens (NFTs) enhancement enhancement-p4 Non-critical functionality wanted by few users, or there are clear alternatives

Comments

@MetaZoneio
Copy link

Steps for UNAT 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 from inscription data
  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. Finally render results by placing resulting content into an <iframe> via the srcdoc parameter
@314159265359879 314159265359879 added area:collectibles Issues related to non-fungible tokens (NFTs) area:bitcoin enhancement-p4 Non-critical functionality wanted by few users, or there are clear alternatives enhancement labels Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:bitcoin area:collectibles Issues related to non-fungible tokens (NFTs) enhancement enhancement-p4 Non-critical functionality wanted by few users, or there are clear alternatives
Projects
None yet
Development

No branches or pull requests

3 participants