Function signFusionQuote

  • 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.

    Parameters

    Returns Promise<SignFusionQuotePayload>

    Promise resolving to the signed quote payload

    Example

    const signedQuote = await signFusionQuote(meeClient, {
    fusionQuote: {
    quote: quotePayload,
    trigger: {
    tokenAddress: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", // USDC
    chainId: 1,
    amount: "1000000" // 1 USDC
    }
    },
    account: smartAccount // Optional
    });

    Throws

    Will throw an error if:

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