IpfsStorage.uploadMetadata() method
Uploads JSON metadata to IPFS
Signature:
uploadMetadata(metadata: JsonObject, contractAddress?: string, signerAddress?: string, options?: {
onProgress: (event: UploadProgressEvent) => void;
}): Promise<string>;
Parameters
Parameter | Type | Description |
---|---|---|
metadata | JsonObject | The metadata to be uploaded. |
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<string>