Function mintSecretNFT

  • Name

    mintSecretNFT

    Summary

    Encrypts your data to create a secret NFT and uploads your key's shards on a TEE.

    Returns

    A JSON including both secretNftEvent & TEE enclave response (shards datas and description).

    Type Parameters

    • T

    Parameters

    • nftFile: File

      File to upload as the preview of the encrypted NFT.

    • nftMetadata: TernoaHelpers.NftMetadataType<T>

      NFT metadata (Title, Description).

    • secretNftFile: File

      File to encrypt and then upload on IPFS.

    • secretNftMetadata: TernoaHelpers.NftMetadataType<T>

      Secret NFT metadata (Title, Description).

    • ipfsClient: TernoaHelpers.TernoaIPFS

      A TernoaIPFS instance.

    • ownerPair: IKeyringPair

      Account of the secret NFT's owner.

    • clusterId: number = 0

      The TEE Cluster id.

    • royalty: number = 0

      Percentage of all second sales that the secret NFT creator will receive. Default is 0%. It's a decimal number in range [0, 100].

    • collectionId: undefined | number = undefined

      The collection to which the secret NFT belongs. Optional Parameter: Default is undefined.

    • isSoulbound: boolean = false

      If true, makes the secret NFT intransferable. Default is false.

    Returns Promise<{
        clusterResponse: TernoaHelpers.TeeSharesStoreType[];
        event: Nft.SecretNftData;
    }>

Generated using TypeDoc