Function signQuote

  • Signs a quote

    Parameters

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

      The Mee client to use

      • 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

      • 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

      The parameters for the quote

    Returns Promise<SignQuotePayload>

    The signed quote

    Example

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