Theme

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 { addPlugin } from '@metaplex-foundation/mpl-core'

const assetAddress = publicKey('11111111111111111111111111111111')
const delegate = publicKey('22222222222222222222222222222222')

await addPlugin(umi, {
  asset: asset.publicKey,
  plugin: {
    type: 'TransferDelegate',
    authority: { type: 'Address', address: delegate },
  },
}).sendAndConfirm(umi)
Previous
Autograph Plugin