Signs a fusion quote by automatically selecting between permit and on-chain signing based on the payment token's capabilities. If the token supports ERC20Permit, it will use permit signing; otherwise, it will fall back to on-chain signing.
const signedQuote = await signFusionQuote(meeClient, { fusionQuote: { quote: quotePayload, trigger: { tokenAddress: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", // USDC chainId: 1, amount: "1000000" // 1 USDC } }, account: smartAccount // Optional}); Copy
const signedQuote = await signFusionQuote(meeClient, { fusionQuote: { quote: quotePayload, trigger: { tokenAddress: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", // USDC chainId: 1, amount: "1000000" // 1 USDC } }, account: smartAccount // Optional});
Will throw an error if:
The Mee client instance
Extends the client with additional functionality
Makes HTTP requests to the Http node
Parameters for signing the fusion quote
Promise resolving to the signed quote payload
Signs a fusion quote by automatically selecting between permit and on-chain signing based on the payment token's capabilities. If the token supports ERC20Permit, it will use permit signing; otherwise, it will fall back to on-chain signing.
Example
Throws
Will throw an error if: