getModule

The getModule method is the most basic way to get the interact-able contract instance for a given module.

Import: imported as follows

import { getModule } from '@inverter-network/sdk'

Parameters: an object with the following properties

({
  // the name of the module
  name: ModuleName
} | {
  // manually passed module data
  moduleData: ModuleData
}) & {
    // the address of the deployed module
    address: `0x${string}`
    // the public client or provider to make RPC calls
    publicClient: PublicClient
    // the wallet client to sign and submit transactions
    walletClient?: WalletClient
    // The parser config, in charge of decimals, ...
    tagConfig?: TagConfig
    // The Inverter instance in charge of cache
    self?: Inverter
}

Returns: a Module object with the following properties

Last updated