import { zeroAddress } from "viem";
// Create a new SPG NFT collection
//
// NOTE: Use this code to create a new SPG NFT collection. You can then use the
// `newCollection.spgNftContract` address as the `spgNftContract` argument in
// functions like `registerIpAsset` in the IPAsset Client.
//
// You will mostly only have to do this once. Once you get your nft contract address,
// you can use it in SPG functions.
//
const newCollection = await client.nftClient.createNFTCollection({
name: "Test NFT",
symbol: "TEST",
isPublicMinting: true,
mintOpen: true,
mintFeeRecipient: zeroAddress,
contractURI: "",
});
console.log(
`New SPG NFT collection created at transaction hash ${newCollection.txHash}`
);
console.log(`NFT contract address: ${newCollection.spgNftContract}`);