Home > @3rdweb/sdk > Module > setMetadata
Set new metadata on the contract and return it if successful.
Signature:
setMetadata(metadata: MetadataURIOrObject): Promise<ModuleMetadata>;
Parameter | Type | Description |
---|---|---|
metadata | MetadataURIOrObject | The metadata to set. |
Returns:
Promise<ModuleMetadata>