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.

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
});

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