Skip to main content

handover

Handovers an asset to a new authority.

Accounts

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

NameWritableSignerOptionalDescription
assetInitialized asset account
authorityAuthority of the asset
new authorityNew authority of the assets to set
info

The requirement of the new authority to be a signer is to ensure that the new authority is the intended one.

Arguments

None.

Examples

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

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