Rise-In / NFT-Minter

The NFT-Minter Project is an open-source, blockchain-based application designed to simplify the NFT creation process. It allows users to upload their NFT images, generate JSON metadata for the NFT, and interact with a dynamic NFT marketplace.
https://mintyournft.vercel.app/
4 stars 5 forks source link

Update MetadataJson.js #15

Closed devkumar2313 closed 1 month ago

devkumar2313 commented 1 month ago

Added download Json button.

  1. Download Button: A new button with an onClick handler for downloading the JSON file has been added next to the "Copy to Clipboard" button.
  2. handleDownload Function: This function creates a blob from the JSON string, creates a temporary anchor element, and programmatically clicks it to trigger the download. The filename is set to the current Unix timestamp.
  3. After the download is triggered, the temporary URL and anchor element are cleaned up to avoid memory leaks.

Thanks for considering...

bhupendra-chouhan commented 1 month ago

Awesome Work @devkumar2313 👏

bhupendra-chouhan commented 1 month ago

Hey @devkumar2313. If you want to keep yourself updated with latest Web3/Blockchain and opensource related stuff, then make sure to join our TG community and meet more like-minded devs. Rise In India (TG Link) : https://t.me/risein_india