Function mpl_token_metadata::instruction::utilize
source · pub fn utilize(
program_id: Pubkey,
metadata: Pubkey,
token_account: Pubkey,
mint: Pubkey,
use_authority_record_pda: Option<Pubkey>,
use_authority: Pubkey,
owner: Pubkey,
burner: Option<Pubkey>,
number_of_uses: u64
) -> Instruction
Expand description
Utilize
Utilize or Use an NFT , burns the NFT and returns the lamports to the update authority if the use method is burn and its out of uses. Use Authority can be the Holder of the NFT, or a Delegated Use Authority.
Accounts:
[writable]
Metadata account[writable]
Token Account Of NFT[writable]
Mint of the Metadata[signer]
A Use Authority / Can be the current Owner of the NFT[signer]
Payer[]
Owner[]
Token program[]
Associated Token program[]
System program- Optional
[]
Rent info - Optional
[writable]
Use Authority Record PDA If present the program Assumes a delegated use authority