• Creates a MultisigV2 wallet instance using the provided TonClient and configuration.

    This function initializes a multisig wallet by opening it with the given configuration. It provides methods to deploy the wallet, send orders, and approve orders.

    Parameters

    • tonClient: TonClient | TonClient4

      The TonClient instance used to interact with the blockchain.

    • config: MultisigConfig

      The configuration object for the multisig wallet, which includes settings such as the list of signers and whether arbitrary sequence numbers are allowed.

    Returns {
        approve: (
            sender: Sender,
            orderContract: Order,
            options?: { value?: bigint },
        ) => Promise<void>;
        deploy: (sender: Sender, value?: bigint) => Promise<void>;
        sendOrder: (
            sender: Sender,
            args: SenderArguments | SenderArguments[],
            options?: { timeout?: number; value?: bigint },
        ) => Promise<Order>;
        wallet: OpenedContract<Multisig>;
    }

    An object containing:

    • wallet: The initialized multisig wallet instance.
    • deploy: A function to deploy the wallet with a specified sender and value.
    • sendOrder: A function to send an order from the wallet, with options for timeout and value.
    • approve: A function to approve an order, requiring the sender to be one of the configured signers.