• Executes a quote by performing a three-step process:

    1. Fetches a quote using getQuote
    2. Signs the quote using signQuote
    3. Executes the signed quote using executeSignedQuote

    This is a convenience function that combines all three steps into a single operation.

    Parameters

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

      The Mee client instance used for API interactions

      • 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: GetQuoteParams

      Parameters for generating the quote

    Returns Promise<ExecuteSignedQuotePayload>

    Promise resolving to the execution payload containing transaction details

    Example

    const hash = await execute(client, {
    chainId: "1", // Ethereum mainnet
    walletProvider: "metamask",
    instructions: [{
    to: "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
    data: "0x...", // Transaction data
    value: "0" // Amount in wei
    }],
    gasToken: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48" // Optional: USDC address
    });

    Throws

    Will throw an error if any of the three steps (get, sign, or execute) fail