プラグイン
Bubblegum プラグイン
Last updated January 31, 2026
Bubblegum プラグインは、圧縮 NFT に使用できる Collection を作成できる Authority Managed プラグインです。 このプラグインは MPL Core Collection でのみ使用できます。
対応状況
| MPL Core Asset | ❌ |
| MPL Core Collection | ✅ |
引数
Bubblegum プラグインは引数を必要としません。
Bubblegum プラグインを使用した Collection の作成コード例
Bubblegum プラグインを使用した Collection の作成
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",
},
],
})
Collection に Bubblegum プラグインを追加するコード例
Collection に Bubblegum プラグインを追加
import {
addCollectionPlugin,
} from '@metaplex-foundation/mpl-core';
await addCollectionPlugin(umi, {
collection: collection.publicKey,
plugin: {
type: "BubblegumV2",
},
}).sendAndConfirm(umi);
