Plugins
Transfer Delegate Plugin
Overview
The Transfer Delegate
Plugin is a Owner Managed
plugin that allows the authority of the Transfer Delegate Plugin to transfer the Asset at any time.
The Transfer Plugin will work in areas such as:
- Escrowless sale of the Asset.
- Gaming scenario where the user swaps/loses their asset based on an event.
Works With
MPL Core Asset | ✅ |
MPL Core Collection | ❌ |
Arguments
The Transfer Plugin doesn't contain any arguments to pass in.
Adding the Transfer Plugin to an Asset
Adding a Transfer Plugin to an MPL Core Asset
import { publicKey } from '@metaplex-foundation/umi'
import { addPluginV1, createPlugin } from '@metaplex-foundation/mpl-core'
const asset = publicKey('11111111111111111111111111111111')
await addPluginV1(umi, {
asset: asset,
plugin: createPlugin({ type: 'TransferDelegate' }),
}).sendAndConfirm(umi)