Class Storage

Hierarchy (view full)

Constructors

Properties

API_PREFIX: string = '/storage'

API url for storage.

Methods

  • Gets basic data of an IPFS cluster used by the project.

    IPFS clusters contain multiple IPFS nodes but expose a single gateway for accessing content via CID or IPNS.

    Apillon clusters (gateways) are not publicly accessible

    Returns Promise<IpfsClusterInfo>

    Note

    Each project has its own secret for generating tokens to access content on the IPFS gateway.

  • Apillon IPFS gateways are private and can only be accessible with a token.

    Parameters

    • cid: string

      The CID or IPNS address of the fie

    Returns Promise<string>

    The IPFS link where the requested content can be accessed.