useMintNFTSupply
Hook for minting additional supply to an existing ERC-1155 token.
Available to use on contracts that implement the ERC1155Mintable interface, such as the Edition or Edition Drop .
The wallet address that initiates this transaction must have minting permissions on the contract.
Mutation object to mint a more supply of a token id to the provided wallet
options
The mutation function takes an object with the following properties:
additionalSupply
The quantity of additional supply to mint.
For example, if you have 10 quantity so far, and you want to mint 5 more, set additionalSupply
to 5
.
Can be a string
or number
.
to
The wallet address to mint the new supply to.
To use the connected wallet address, use the useAddress
hook.
tokenId
The token ID of the NFT to mint additional supply to.
Can be a string
or number
.