• Parameters

    • nftId: number

      The secret NFT id.

    • ipfsClient: TernoaIPFS

      A TernoaIPFS instance.

    • requester: string | IKeyringPair

      Account of the secret NFT's owner(keyring) or address (string) or the decrypter account if NFT is delegated or rented.

    • requesterRole: RequesterType

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

    • Optional extensionInjector: Record<string, any>

      (Optional) The signer method retrived from your extension: object must have a signer key.

    • clusterId: number = 0

      (Optional)The TEE Cluster id. Default is set to cluster id 0.

    Returns Promise<string>

    A string containing the secretNFT decrypted content.




    Retrieves and decrypts the secret NFT hash.

Generated using TypeDoc