• Fetches a file from IPFS via the Pinata gateway.

    Parameters

    • cid: string

      The CID of the file to fetch.

    • type: string

      The type of the file ('meta' for JSON and 'asset' for binary data).

    • config: PinataConfig

    Returns Promise<AssetNode | Uint8Array>

    A promise that resolves with the file data as a string or a Uint8Array.

    Async

    Function

    fetchFromIPFS

    Throws

    Will throw an error if the fetch fails.

Generated using TypeDoc