• Uploads data to the InterPlanetary File System (IPFS). One can setup their own IPFS node or use a service like kubo.

    Parameters

    • -: UploadToIPFSParams

      params of type The parameters for the upload operation. This includes the data to upload, the configuration for the IPFS, and the type of the data.

    Returns Promise<null | IPFSResponse>

    A promise that resolves with the response of type from the IPFS if the upload is successful, or null if the upload fails.

    Example

    const response = await uploadToIPFS({ data: myData, config: myConfig, type: 'meta' })
    

Generated using TypeDoc