By default, the NFT metadata is uploaded and pinned to IPFS before minting.
You can override this default behavior by providing a string that points to valid metadata object instead of an object.
image ="my-image-url", // An image URL or IPFS URI
// Any other valid metadata properties
}
});
metadataWithSupply
Provide a string that points to, or an NFTMetadataWithSupply struct containing
metadata that conforms to the metadata standards,
along with the supply of the NFT to mint.
If you provide a struct, the metadata is uploaded and pinned to IPFS before
the NFT(s) are minted.
The image property can be an IPFS URI, or a URL to an image.
MintTo
The same as mint, but allows you to specify the address of the wallet rather than using the connected wallet.