@metaplex-foundation/mpl-token-metadata-kit - v0.0.1
    Preparing search index...

    Function createProgrammableNft

    • Creates and mints a ProgrammableNonFungible NFT

      Convenience wrapper that sets tokenStandard to ProgrammableNonFungible and amount to 1.

      Parameters

      • input: Omit<CreateAndMintInput, "amount" | "tokenStandard">

        Create parameters without tokenStandard and amount

      Returns Promise<
          [
              Instruction<
                  string,
                  readonly (AccountMeta<string> | AccountLookupMeta<string, string>)[],
              >,
              Instruction<
                  string,
                  readonly (AccountMeta<string> | AccountLookupMeta<string, string>)[],
              >,
          ],
      >

      Array containing [createInstruction, mintInstruction]

      const [createIx, mintIx] = await createProgrammableNft({
      mint,
      authority,
      payer,
      name: 'My PNFT',
      uri: 'https://example.com/pnft.json',
      sellerFeeBasisPoints: 500,
      tokenOwner: owner.address,
      });