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// } Copy
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 Mee client instance
Extends the client with additional functionality
Makes HTTP requests to the Http node
Parameters for the fusion quote execution
Promise resolving to the transaction hash
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.
Example
Throws
Will throw an error if: