Function nftIpfsUpload

  • Name

    nftIpfsUpload

    Summary

    Uploads your NFT offchain metadata on IPFS.

    Returns

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

    Parameters

    • data: Nft.INFTMetadata

      Offchain metadata to be uploaded. It must fit the INFTMetadata interface format with a description, file and title.

    • 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