• Creates a HighloadWalletV3 instance using the provided TonClient, mnemonic, and optional configuration.

    This function initializes a highload wallet by generating a key pair from the mnemonic and configuring the wallet with the provided settings. It provides methods to deploy the wallet and send messages in batches.

    Parameters

    • tonClient: TonClient | TonClient4

      The TonClient instance used to interact with the blockchain.

    • mnemonic: string[]

      An array of mnemonic words used to derive the wallet's key pair.

    • Optionalconfig: Omit<Partial<HighloadWalletV3Config>, "publicKey">

      Optional configuration for the wallet, excluding the public key, which includes settings such as subwallet ID and timeout duration.

    Returns Promise<
        {
            deploy: (sender: Sender, value: bigint) => Promise<void>;
            send: (
                args: SenderArguments | SenderArguments[],
                queryId: HighloadQueryId,
                options?: {
                    createdAt?: number;
                    onFail?: (error: unknown) => void;
                    timeout?: number;
                    verbose?: boolean;
                },
            ) => Promise<string>;
            wallet: OpenedContract<HighloadWalletV3>;
        },
    >

    An object containing:

    • wallet: The initialized highload wallet instance.
    • deploy: A function to deploy the wallet with a specified sender and value.
    • send: A function to send messages in batches, with options for verbosity, timeout, and error handling.