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

    Function createNft

    • Creates and mints a NonFungible NFT

      Convenience wrapper that sets tokenStandard to NonFungible 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 createNft({
      mint,
      authority,
      payer,
      name: 'My NFT',
      uri: 'https://example.com/nft.json',
      sellerFeeBasisPoints: 500,
      tokenOwner: owner.address,
      });