![]() So no access to parent context or same origin stuffs (cookies, localStorage & co). This Sandbox aims to display the NFT code in a safe way for the Viewer.įor Security reasons, the NFT Code is sandboxed in an iframe, using srcdoc.īy default, only "allow-script", "allow-pointer-lock", "allow-downloads" and "allow-popups" are enabled. All this directly in a Gallery / Website / Marketplace. The Owner could for example edit colors, animation durations, texts, textures or anything that the Creator declared as editable.Īnother example would be a Card on which the Viewer could click the card would then flip and present its attributes (that are stored in the NFT's JSON or even retrieven with an ajax call). This way, an Artist could for example create a procedural piece of art, and allow the future Owners to set some key values used during the art rendering, thus making the Art evolutive. (a bit like Async, but because the NFT is code running, it can go much deeper) Allow a Creator to declare some values "configurable/variables" and an Owner to configure those values, making the NFT evolve.Allow NFTs to be dynamic and/or interactives to the Viewer (procedural art with js, html, external data call, music player, video player.).Interactive NFT is a project that aims to: If like me, you prefer reading code with comments better than long walls of text, just jump to Usage Descriptions Interactive NFTs The tools provided by the platform you used to create Interactive NFTs should be enough. What follows in mainly for developers to know what the Sandbox expects for properties to work and to participate to the development of this (maybe?) new standard.Īs a Creator or an Owner, you should probably never have to edit any of those values by hand. Viewer: the person viewing the NFT (might be any user, including Creator or Owner). (you could for example run the NFTs in an iframe that you host on a subdomain of your website if srcdoc iframes are not your thing) "Glossary"Ĭreator: the entity (Artist, Developer, Platform. This is the good place to see the end schema of Interactive NFT's JSON, which can guide platforms into creating their own Sandbox if they do not trust this one. This Sandbox project is more an "in deep" presentation of what are Interactive NFTs and how they work. The Sandbox has no idea about the existence of the Blockchain (it works with JSON already loaded), when BeyondNFT/embeddable makes direct calls to the smart contracts to get all the data needed. ![]() If you're just looking to easily embed NFTs, you might be looking for the BeyondNFT/embeddable project. This project is the open source Sandbox for executing and viewing Interactive NFTs. This was developed for the Untitled NFT Hackaton while working on a safe and hopefully in the future standard way to create Interactive NFTs.
0 Comments
Leave a Reply. |