Procedure for Method 2

  1. Inscribe a Single JSON Array: Instead of inscribing each index array independently, create one inscription that includes a JSON array containing all index arrays. This JSON inscription significantly reduces the number of individual blockchain transactions needed but makes upgrades more expensive both in terms of transaction fees and block space.

  2. Inscribe Display.html: Inscribe display.html which now includes a reference to this JSON array. It must now determine the correct index array to pass to compiler.js based on an index encoded in the metadata of the final NFT inscription.

  3. Inscribe the Final NFT: Similar to Method 1, inscribe the final NFT that users will own. Instead of a satpoint, the metadata of this inscription contains the index referring to the position of the specific index array within the JSON array inscribed previously. This setup allows the display.html to dynamically retrieve and display the appropriate traits based on the index.

This refined approach in Method 2 simplifies the inscription process by consolidating multiple data points into a single transaction, reducing blockchain clutter while maintaining the rich feature set of the NFTs. The integration of a JSON array into display.html ensures that each NFT can dynamically reflect updates and changes in its composition, providing an efficient yet flexible system for NFT management.

Last updated