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
| Parameter | Type | Description |
|---|---|---|
| metadatas | JsonObject[] | The metadata to be uploaded. |
| fileStartNumber | number | (Optional) Optional. The first file file name begins with. |
| contractAddress | string | (Optional) Optional. The contract address the data belongs to. |
| signerAddress | string | (Optional) Optional. The address of the signer. |
| options | { onProgress: (event: UploadProgressEvent) => void; } | (Optional) Optional. Upload progress callback. |
Returns:
Promise<UploadResult>