Plugins
Permanent Freeze Delegate
Overview
The Freeze Plugin is a Permanent
plugin will always be present on the MPL Core Asset or MPL Core Collection. A permanent plugin can only be added at the time of Asset or Collection creation.
The Permanent Freeze Plugin will work in areas such as;
- Soulbound Tokens.
Works With
MPL Core Asset | ✅ |
MPL Core Collection | ✅ |
Arguments
Arg | Value |
---|---|
frozen | bool |
Creating an Asset with a Permanent Freeze plugin
Creating an Asset with a Permanent Freeze plugin
import { publicKey } from '@metaplex-foundation/umi'
import {
createV1,
createPlugin,
pluginAuthority,
addressPluginAuthority,
} from '@metaplex-foundation/mpl-core'
const assetSigner = generateSigner(umi)
const delegate = publicKey('33333333333333333333333333333')
await createV1(umi, {
asset: asset.publicKey,
name: 'My NFT',
uri: 'https://example.com/my-nft.json',
plugins: [
{
plugin: createPlugin({
type: 'PermanentFreezeDelegate',
data: { frozen: true },
}),
authority: addressPluginAuthority(delegate),
},
],
}).sendAndConfirm(umi)