Features
Updating Assets
The update authority or delegate of a Core Asset has the ability to change some of the Asset's data.
Updating a Core Asset
Here is how you can use our SDKs to update an MPL Core Asset.
Update an Asset
import { publicKey } from '@metaplex-foundation/umi'
import { updateV1 } from '@metaplex-foundation/mpl-core'
const asset = publicKey('11111111111111111111111111111111')
await updateV1(umi, {
asset: asset,
newName: 'New Nft Name',
newUri: 'https://example.com/new-uri',
}).sendAndConfirm(umi)
Making a Core Asset Data Immutable
Here is how you can use our SDKs to update an MPL Core Asset.
Update an Asset
import { publicKey } from '@metaplex-foundation/umi'
import { updateV1 } from '@metaplex-foundation/mpl-core'
const asset = publicKey('11111111111111111111111111111111')
await updateV1(umi, {
asset: asset,
newUpdateAuthority: updateAuthority('None'),
newName: null,
newUri: null,
}).sendAndConfirm(umi)