Beta
an instance of a Erc1155
a mutation object that can be used to mint a more supply of a token id to the provided wallet
const Component = () => {
const { contract } = useContract("{{contract_address}}");
const {
mutate: mintNftSupply,
isLoading,
error,
} = useMintNFTSupply(contract);
if (error) {
console.error("failed to mint additional supply", error);
}
return (
<button
disabled={isLoading}
onClick={() => mintNftSupply({ tokenId: 0, additionalSupply: 100, to: "{{wallet_address}}"})}
>
Mint Additional Supply!
</button>
);
};
ERC1155Mintable
Generated using TypeDoc
Increase the supply of an existing NFT