• Signs a quote using the provided account's signer or the client's default account. The signature is required for executing the quote through the MEE service.

    Parameters

    • client: {
          account: MultichainSmartAccount;
          extend: (<const client, const extendedHttpClient>(fn) => never);
          info: GetInfoPayload;
          pollingInterval: number;
          request: (<T>(params) => Promise<T>);
      }

      The Mee client instance

      • account: MultichainSmartAccount
      • extend: (<const client, const extendedHttpClient>(fn) => never)

        Extends the client with additional functionality

        Returns

        Extended client with both base and new functionality

          • <const client, const extendedHttpClient>(fn): never
          • Type Parameters

            • const client extends {
                  extend?: undefined;
                  request?: undefined;
              }
            • const extendedHttpClient extends HttpClient

            Parameters

            Returns never

      • info: GetInfoPayload
      • pollingInterval: number
      • request: (<T>(params) => Promise<T>)

        Makes HTTP requests to the Http node

          • <T>(params): Promise<T>
          • Type Parameters

            • T

            Parameters

            • params: RequestParams

            Returns Promise<T>

    • params: SignQuoteParams

      Parameters for signing the quote

    Returns Promise<SignQuotePayload>

    Promise resolving to the quote payload with added signature

    Example

    const signedQuote = await signQuote(meeClient, {
    quote: quotePayload,
    account: smartAccount // Optional
    });