Function executeFusionQuote

Convenience method that combines signFusionQuote and executeSignedQuote into a single operation. This function automatically handles the signing process (either permit or on-chain) and executes the transaction in one step.

const result = await executeFusionQuote(meeClient, {
fusionQuote: {
quote: quotePayload,
trigger: {
tokenAddress: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", // USDC
chainId: 1,
amount: "1000000" // 1 USDC
}
},
account: smartAccount // Optional
});
// Returns:
// {
// hash: "0x123..." // Supertransaction hash
// }

Will throw an error if:

  • The quote format is invalid
  • The signing process fails
  • The execution fails
  • The token information cannot be retrieved