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:

  1. [writable] Metadata account
  2. [writable] Token Account Of NFT
  3. [writable] Mint of the Metadata
  4. [signer] A Use Authority / Can be the current Owner of the NFT
  5. [signer] Payer
  6. [] Owner
  7. [] Token program
  8. [] Associated Token program
  9. [] System program
  10. Optional [] Rent info
  11. Optional [writable] Use Authority Record PDA If present the program Assumes a delegated use authority