typescript-sdk

Home > @3rdweb/sdk > Module > setMetadata

Module.setMetadata() method

Set new metadata on the contract and return it if successful.

Signature:

setMetadata(metadata: MetadataURIOrObject): Promise<ModuleMetadata>;

Parameters

Parameter Type Description
metadata MetadataURIOrObject The metadata to set.

Returns:

Promise<ModuleMetadata>