Implements

Constructors

Properties

apiKey?: string
apiUrl: URL

Methods

  • Get file from IPFS.

    Parameters

    Returns Promise<unknown>

    IPFS file

  • Store a Ternoa secret NFT's metadata & asset on IPFS.

    Parameters

    • service: IServiceIPFS
    • encryptedFile: string

      NFT's encrypted asset.

    • encryptedFileType: string

      The original encrypted file type.

    • publicKey: string

      Public key used to encrypt the Secret NFT.

    • Optional nftMetadata: Partial<NftMetadataType>

      (Optional) Secret NFT metadata here.

    • Optional mediaMetadata: MediaMetadataType

      (Optional) Secret NFT asset metadata.

    Returns Promise<IpfsAddDataResponseType>

    IPFS secret NFT data (Hash, Size, Name).

Generated using TypeDoc