SDK
crossbell.js
Contract API
Link/Mint Module
Query Module

Query Module

There is a GitHub Repository (opens in a new tab) storing all the modules that are available for use. You can also check the Module Store page to browse through the modules.

getLinkModules

Returns a list of link modules.

getLinkModules(): Promise<MintOrLinkModule[]>

Usage

const modules = await contract.getLinkModules()

getMintModules

Returns a list of mint modules.

getMintModules(): Promise<MintOrLinkModule[]>

Usage

const modules = await contract.getMintModules()

getLinkModule

Returns a link module by its address.

getLinkModule(address: string): Promise<MintOrLinkModule | undefined>

Usage

const module = await contract.getLinkModule('0x1234')

getMintModule

Returns a mint module by its address.

getMintModule(address: string): Promise<MintOrLinkModule | undefined>

Usage

const module = await contract.getMintModule('0x1234')

Module Metadata

Please refer to the Module Metadata page for more information.