typescript-sdk

Home > @3rdweb/sdk > Module

Module class

The root Module class. All other Modules extend this.

Signature:

export declare class Module<TContract extends BaseContract = BaseContract> 

Remarks

This should never be instantiated directly.

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the Module class.

Properties

Property Modifiers Type Description
address   string  
sdk   ThirdwebSDK  

Methods

Method Modifiers Description
exists()    
getMetadata(resolveUrls)   Get the metadata of the contract.
parseEventLogs(eventName, logs)    
parseLogs(eventName, logs, contract)    
setMetadata(metadata)   Set new metadata on the contract and return it if successful.