Function collectionIpfsUpload

  • Name

    collectionIpfsUpload

    Summary

    Uploads your Collection offchain metadata on IPFS.

    Returns

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

    Parameters

    • data: Nft.ICollectionMetadata

      Offchain metadata to be uploaded. It must fit the ICollectionMetadata interface format with a name, description, profileFile and a bannerFile.

    • 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