Collection Config
Create a collection NFT
import {Metaplex, keypairIdentity} from "@metaplex-foundation/js";
const metaplex = new Metaplex(connection).use(keypairIdentity(marketplaceAuthorityKey));
await metaplex.nfts().create({
name: COLLECTION_NAME,
symbol: COLLECTION_SYMBOL,
uri: COLLECTION_METADATA_URI,
sellerFeeBasisPoints: COLLECTION_ROYALTY_BPS,
creators: [{
address: marketplaceAuthorityKey.publicKey,
share: 100
}],
isCollection: true,
useNewMint: mintKeypair, // Optional, if you have a pre-generated keypair to use
mintAuthority: marketplaceAuthorityKey,
}, {
commitment: "finalized"
})Initialize Collection Config
Last updated