Theme

Plugins

Bubblegum Plugin

The Bubblegum Plugin is a Authority Managed plugin that allows you to create Collections that can be used for compressed NFTs.

This plugin can only be used on MPL Core Collections.

Works With

MPL Core Asset
MPL Core Collection

Arguments

The Bubblegum Plugin requires no arguments.

Create a Collection with the Bubblegum Plugin code example

Create a Collection with the Bubblegum Plugin

import {
  createCollection,
} from '@metaplex-foundation/mpl-core';
import {
  generateSigner,
} from '@metaplex-foundation/umi';

const collectionSigner = generateSigner(umi);

await createCollection(umi, {
    collection: collectionSigner,
    name: "My Collection",
    uri: "https://example.com/my-nft.json",
    plugins: [
      {
        type: "BubblegumV2",
      },
    ],
  })

Adding the Bubblegum Plugin to a Collection code example

Add Bubblegum Plugin to Collection

import {
  addCollectionPlugin,
} from '@metaplex-foundation/mpl-core';

await addCollectionPlugin(umi, {
  collection: collection.publicKey,
  plugin: {
    type: "BubblegumV2",
  },
}).sendAndConfirm(umi);
Previous
AddBlocker Plugin