Function viewSecretNFT

  • Name

    viewSecretNFT

    Summary

    Retrieves and decrypts the secret NFT hash.

    Returns

    A string containing the secretNFT decrypted content.

    Parameters

    • nftId: number

      The secret NFT id.

    • ipfsClient: TernoaHelpers.TernoaIPFS

      A TernoaIPFS instance.

    • requesterPair: IKeyringPair

      Account of the secret NFT's owner or the decrypter account if NFT is delegated or rented.

    • requesterRole: TernoaHelpers.RequesterType

      Kind of the secret NFT's decrypter: it can be either "OWNER", "DELEGATEE" or "RENTEE"

    • clusterId: number = 0

      The TEE Cluster id.

    Returns Promise<string>

Generated using TypeDoc