Last active
July 25, 2023 18:42
-
-
Save vlzhr/3ea1a31e919e75abd0e9d5948cbc0e14 to your computer and use it in GitHub Desktop.
Issue NFT on Waves with Puzzle SDK
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# permissionless issue NFT on Waves using puzzlemarket.org SDK | |
# run this with your Ride code | |
let nftCreationAddress = Address(base58'3PFQjjDMiZKQZdu5JqTHD7HwgSXyp9Rw9By') | |
let nftName = "Test NFT" # up to 16 symbols | |
let nftDescription = "A very rare NFT" | |
let nftImageLink = "https://ipfs.io/ipfs/bafybeidwsupz24ozr244breub5obhl5dxh22xr3wu7xumm4mlf7tgmocvi/display.png" | |
let collectionName = "artefacts" # set "" to use default collection name | |
strict createdNFTId = match (invoke(nftCreationAddress, "createNFT", [nftName, nftDescription, nftImageLink, collectionName], [])) { | |
case x: String => x | |
case _ => throw("something went wrong during the creation of NFT") | |
} | |
# createdNFTId contains the ID of a newly created NFT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment