You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// <param name="environment">Specifies the environment (<c>Sandbox</c> or <c>Production</c>).</param>
13
13
/// <param name="email">The user's email address, pre-filled in the on-ramp flow.</param>
14
-
/// <param name="address">The user's wallet address, where tokens will be sent.</param>
15
-
/// <param name="fiatCurrency">The fiat currency to use (default: "USD").</param>
16
-
/// <param name="fiatAmount">The amount of fiat currency to spend when purchasing cryptocurrency (default: "50").</param>
17
-
/// <param name="cryptoCurrency">The cryptocurrency to purchase (default: "IMX").</param>
18
-
/// <param name="cryptoCurrencyList">A comma-separated list of available cryptocurrencies for purchase (default: "imx,eth,usdc").</param>
14
+
/// <param name="walletAddress">The user's wallet address, where tokens will be sent.</param>
15
+
/// <param name="queryParams">The query parameters for the on-ramp flow. Uses default values if not specified.</param>
16
+
/// <param name="extraQueryParams">Optional additional query parameters. See <a href="https://docs.transak.com/docs/query-parameters">Transak docs</a> for possible fields.</param>
19
17
/// <returns>The generated on-ramp URL.</returns>
18
+
/// <remarks>
19
+
/// If <paramref name="extraQueryParams"/> includes any fields that are already defined in <paramref name="queryParams"/>,
20
+
/// the values in <paramref name="queryParams"/> will take precedence.
21
+
/// For example, if <paramref name="extraQueryParams"/> contains "defaultFiatAmount", it will be ignored and the value
22
+
/// from <paramref name="queryParams.DefaultFiatAmount"/> will be used instead.
@@ -58,71 +110,61 @@ public static string GenerateOnRampLink(
58
110
/// </summary>
59
111
/// <param name="environment">Specifies the environment (<c>Sandbox</c> or <c>Production</c>).</param>
60
112
/// <param name="publishableKey">The publishable key obtained from <a href="https://hub.immutable.com/">Immutable Hub</a>. See <a href="https://docs.immutable.com/api/zkEVM/apikeys">API keys</a> for more details.</param>
61
-
/// <param name="fromTokenAddress">The address of the token being swapped from (default is null).</param>
62
-
/// <param name="toTokenAddress">The address of the token being swapped to (default is null).</param>
63
-
/// <returns>A swap URL</returns>
113
+
/// <param name="queryParams">The query parameters for the swap flow. Uses default values if not specified.</param>
0 commit comments