Function getCapsuleNFTPrivateKey

  • Name

    getCapsuleNFTPrivateKey

    Summary

    Retrieves the capsule NFT private key to decrypt the secret hashes from properties.

    Parameters

    • nftId: number

      The capsule NFT id.

    • requester: string | IKeyringPair

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

    • requesterRole: RequesterType

      Kind of the capsule 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 0.

    Returns Promise<string>

    A string containing the capsule NFT private key.

Generated using TypeDoc