Function ipfsFileUpload

  • Name

    ipfsFilesUpload

    Summary

    Uploads a file on an IFPS gateway.

    Returns

    A formatted object datas with name, hash, size and type.

    Parameters

    • file: File | Buffer

      File to upload on IPFS.

    • Optional ipfsGateway: string

      IPFS gateway to upload your file on. Default is https://ipfs.ternoa.dev/api/v0/add

    • Optional apiKey: string

      API Key to validate the upload on the IPFS gateway.

    Returns Promise<{
        hash: any;
        name: any;
        size: any;
        type: string;
    }>

Generated using TypeDoc