Nomos

Nomos class on SDK

Before jumping into how to use the Nomos base class is recommended to go to our installation and initialization steps first.

Methods

Init

init(provider: SigningCosmWasmClient): Promise<void>

Initializes the nomos object with a provider. It gets chain configuration and throws if the provider network is not supported (nomos contracts are not deployed on that chain).

Create multisig

createMultisig(
  args: {members: string[]; minApproval: number; from: string},
  options?: {
    factory?: string;
  },
):Promise<{    
    multisig: string | undefined;
    transactionHash: string;
    events: readonly Event[];
}>

Creates a multi-signature wallet using our factory. It receives arguments which is an object with the following parameters:

  • members: List of addresses that will participate in the multisig.

  • minApproval: minimum approval a proposal needs to be executed.

  • from: The account of the provider that will send the transaction

It also receives an optional object which contains a custom factory.

Last updated