Skip to main content

ungroup

Removes an asset from a group.

Accounts

Below is the list of accounts expected by the ungroup instruction.

NameWritableSignerOptionalDescription
assetInitialized asset account
groupAsset account of the group
authorityAuthority of the assets

The instruction expects that both asset and group authorities match and it will fail otherwise. The signing authority must be the authority of the group or the Grouping extension delegate.

Arguments

None.

Examples

import { ungroup } from '@nifty-oss/asset';

// Accounts:
// - asset: PublicKey
// - group: PublicKey
// - authority: KeypairSigner
await ungroup(umi, {
asset,
group,
authority
}).sendAndConfirm(umi);