NftPayment: {
    destination: PublicKey;
    requiredCollection: PublicKey;
}

Guard that charges another NFT (token) from a specific collection as payment for the mint.

List of accounts required:

  1. [writeable] Token account of the NFT.
  2. [writeable] Metadata account of the NFT.
  3. [] Mint account of the NFT.
  4. [] Account to receive the NFT.
  5. [writeable] Destination PDA key (seeds [destination pubkey, token program id, nft mint pubkey]).
  6. [] spl-associate-token program ID.
  7. [] Master edition (pNFT)
  8. [writable] Owner token record (pNFT)
  9. [writable] Destination token record (pNFT)
  10. [] Token Authorization Rules program (pNFT)
  11. [] Token Authorization Rules account (pNFT)

Type declaration

Generated using TypeDoc