Skip to content

Instantly share code, notes, and snippets.

@vlzhr
Last active July 25, 2023 18:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vlzhr/3ea1a31e919e75abd0e9d5948cbc0e14 to your computer and use it in GitHub Desktop.
Save vlzhr/3ea1a31e919e75abd0e9d5948cbc0e14 to your computer and use it in GitHub Desktop.
Issue NFT on Waves with Puzzle SDK
# 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