Features
Transferring Assets
The owner of a Core Asset can transfer ownership to another account by using the transfer
instruction to the MPL Core program.
Transferring a Core Asset
Transfer an Asset
import { publicKey } from '@metaplex-foundation/umi'
import { transferV1 } from '@metaplex-foundation/mpl-core'
const asset = publicKey('11111111111111111111111111111111')
await transferV1(umi, {
asset: asset,
newOwner: newOwner.publicKey,
}).sendAndConfirm(umi)
Transferring a Core Asset in a Collection
If you are transferring an Asset which has a collection you will need to pass the collection address in. How to tell if an asset is in a Collection?
Transfer an Asset that is part of a Collection
import { publicKey } from '@metaplex-foundation/umi'
import { transferV1 } from '@metaplex-foundation/mpl-core'
const asset = publicKey('11111111111111111111111111111111')
await transferV1(umi, {
asset: asset.publicKey,
newOwner: newOwner.publicKey,
collection: colleciton.publicKey,
}).sendAndConfirm(umi)
What if I am the Transfer Delegate of an Asset?
If you are the Transfer Delegate of an Asset via the Transfer Delegate plugin then you can call the transferV1
function as you would if you were the owner of the Asset.