Minting Tokens
#
Zora Mint FeeZora charges a small fee (~$1) to a user minting an NFT. There is no charge to the creator, all the funds from the sales go to the creator. Lastly, the mint fee doesn't apply to admin minted NFT (airdropping).
The best way to find the mint fee for a specific contract is to retieve it from the contract by calling the mintFee
function.
You can read more about the Zora mint fee here.
function mintFee() external view returns (uint256)
#
Mint FunctionPurchase tokens given a minter contract and minter arguments
minter
: The minter contract to usetokenId
: The token ID to purchasequantity
: The quantity of tokens to purchaseminterArguments
: The arguments to pass to the minter (detail in the minters section)
*The minter arguments are different for each minter contract and are listed in the section.
function mint( IMinter1155 minter, uint256 tokenId, uint256 quantity, bytes calldata minterArguments) external payable
#
Minter Strategy ContractsThe minting logic for Zora 1155's lives outside of the main 1155 contract.
It lives in separate contracts called minters.
To mint a token the mint
function is called on the main 1155 contract and then minter checks if the user should be able to mint.
Then the minter tells the main 1155 contract if it should mint or not.
*Note, that the minter arguments are type bytes
#
Fixed Price StrategyMint NFTs for a specific ETH price.
ETH transaction value = ((price + Zora mint fee) * amount)
minterArguments
: User address to mint to, in bytes
*Note, the payment amount of ETH must be set an override if using wagmi or ethers.js.
#
Getting the Mint PriceCaling the sale
function on the fixed-price minter will return the price for a specific token.
function sale(address tokenContract, uint256 tokenId)
#
Merkle Proof StrategyMints tokens based on a merkle tree.
ETH transaction value = ((price + Zora mint fee) * amount)
minterArguments
: Address to mint to, Max quantity, Price per token, Merkle proof
#
Admin MintingAdmins can mint NFTs to addresses. These NFTs do not incur the Zora mint fee.
function adminMint( address recipient, uint256 tokenId, uint256 quantity, bytes memory data) external onlyAdminOrRole(tokenId, PERMISSION_BIT_MINTER)
function adminMintBatch( address recipient, uint256[] memory tokenIds, uint256[] memory quantities, bytes memory data) public nonReentrant