How to build
truffle build
Truffle console commands:
truffle(rinkeby)> let instance = await CryptoLienzNFT.deployed()
# Start the mint
truffle(rinkeby)> instance.setStart(true, {from: accounts[0], value: 0})
# Set base uri
truffle(rinkeby)> instance.setBaseTokenURI("https://my api or my ipfs gateway/", {from: accounts[0], value: 0})
# Mint an NFT
truffle(rinkeby)> instance.mintNFT(1, {from: accounts[0], value: 60000000000000000})
If you put the mint phase at 0 it means that the mint is closed for everyone. If the mint phase is 1 it means that only the users that are allowed listed can mint If the mint phase is 2 it means that everyone can mint
- Deploy the smart contract
- Deploy in ipfs your layers and the hidden metadata (https://app.pinata.cloud/)
- You can call the function
setPreRevealTokenURIand put the ipfs url of the hidden metadata - You can call the function
setBaseTokenURIand put the ipfs url of the hidden metadata - Change the mint phase with
setMintPhasewith 1 or 2 - Then people can mint
- Call
setRevealto reveal all nfts