Function marketplaceIpfsUpload

  • Name

    marketplaceIpfsUpload

    Summary

    Uploads your marketplace offchain metadata on IPFS.

    Returns

    The data object with the hash to add as offchain metadata in the extrinsic.

    Parameters

    • data: Marketplace.IMarketplaceMetadata

      Offchain metadata to be uploaded. It must fit the IMarketplaceMetadata interface format with a name and logoUri.

    • Optional ipfsGateway: string

      IPFS gateway to upload your file on. If not provided, 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