ungroup
Removes an asset from a group.
Accounts
Below is the list of accounts expected by the ungroup instruction.
| Name | Writable | Signer | Optional | Description |
|---|---|---|---|---|
| asset | ✅ | Initialized asset account | ||
| group | ✅ | Asset account of the group | ||
| authority | ✅ | Authority 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
- JavaScript
import { ungroup } from '@nifty-oss/asset';
// Accounts:
// - asset: PublicKey
// - group: PublicKey
// - authority: KeypairSigner
await ungroup(umi, {
asset,
group,
authority
}).sendAndConfirm(umi);