機能
圧縮NFTの凍結と解凍
Last updated February 24, 2026
Summary
Freezing and thawing compressed NFTs controls transferability using Bubblegum V2's freeze instructions. This page covers freeze, delegate-and-freeze, thaw, thaw-and-revoke, and making cNFTs soulbound (non-transferable).
- Freeze a cNFT via a leaf delegate or permanent freeze delegate
- Delegate and freeze in a single transaction with delegateAndFreezeV2
- Thaw a frozen cNFT and optionally revoke the delegate in one step
- Make a cNFT permanently non-transferable (soulbound) with setNonTransferableV2
Bubblegum V2では、圧縮NFTを凍結・解凍できます。これはステーキングなどのさまざまなユースケースに役立ちます。
圧縮NFTの凍結
事前にリーフデリゲートに委任された圧縮NFTを凍結するには、freezeV2命令を使用できます。まだ委任されていない場合は、以下のdelegateAndFreezeV2を参照してください。freezeV2命令は次のように使用できます:
リーフデリゲートとして圧縮NFTを凍結
import {
getAssetWithProof,
freezeV2,
} from '@metaplex-foundation/mpl-bubblegum';
const assetWithProof = await getAssetWithProof(umi, assetId);
await freezeV2(umi, {
...assetWithProof,
leafOwner: umi.identity.publicKey,
authority: leafDelegate, // これはデフォルトで支払者になります
leafDelegate: leafDelegate.publicKey,
// cNFTがコレクションの一部である場合、コレクションアドレスを渡します。
//coreCollection: collectionSigner.publicKey,
}).sendAndConfirm(umi);
