typescript-sdk

Home > @3rdweb/sdk > IStorage > uploadMetadata

IStorage.uploadMetadata() method

Uploads metadata to IPFS

Signature:

uploadMetadata(metadata: MetadataURIOrObject, contractAddress?: string, signerAddress?: string): Promise<string>;

Parameters

Parameter Type Description
metadata MetadataURIOrObject The metadata to be uploaded.
contractAddress string Optional. The contract address the data belongs to.
signerAddress string Optional. The address of the signer.

Returns:

Promise<string>