Skip to main content

IStorage.uploadMetadataBatch() method

Uploads JSON metadata to IPFS

Signature:

uploadMetadataBatch(metadatas: JsonObject[], fileStartNumber?: number, contractAddress?: string, signerAddress?: string, options?: {
onProgress: (event: UploadProgressEvent) => void;
}): Promise<UploadResult>;

Parameters

ParameterTypeDescription
metadatasJsonObject[]The metadata to be uploaded.
fileStartNumbernumber(Optional) Optional. The first file file name begins with.
contractAddressstring(Optional) Optional. The contract address the data belongs to.
signerAddressstring(Optional) Optional. The address of the signer.
options{ onProgress: (event: UploadProgressEvent) => void; }(Optional) Optional. Upload progress callback.

Returns:

Promise<UploadResult>