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
/// A repository of functions that create and return full unsigned transactions to execute specified
13
+
/// actions on the Whirlpool, e.g. creating a funded position or executing a swap.
14
+
/// </summary>
15
+
/// <remarks>
16
+
/// The transactions are returned as Transaction instances, not signed. To complete the action each
17
+
/// transaction must be signed, serialized, and sent to the RPC node. Each transaction may consist of
18
+
/// a single instruction or multiple instructions.
19
+
/// </remarks>
20
+
publicinterfaceIDexAggregator
21
+
{
22
+
23
+
/// <summary>
24
+
/// Creates a quote for a swap for a specified pair of input/output token mint.
25
+
/// </summary>
26
+
/// <param name="inputMint">The mint address of the input token (the token to swap).</param>
27
+
/// <param name="outputMint">The mint address of the output token (the token to swap for).</param>
28
+
/// <param name="amount">The amount to swap (could be of the input token or output token).</param>
29
+
/// <param name="slippageBps">The slippage % in BPS. If the output token amount exceeds the slippage then the swap transaction will fail.</param>
30
+
/// <param name="excludeDexes">Default is that all DEXes are included. You can pass in the DEXes that you want to exclude and separate them by ,. For example, Aldrin,Saber.</param>
31
+
/// <param name="onlyDirectRoutes">Default is false. Direct Routes limits Jupiter routing to single hop routes only.</param>
32
+
/// <param name="platformFeeBps">If you want to charge the user a fee, you can specify the fee in BPS. Fee % is taken out of the output token.</param>
33
+
/// <param name="maxAccounts">Rough estimate of the max accounts to be used for the quote, so that you can compose with your own accounts</param>
34
+
/// <returns>A SwapQuote instance containing information about the swap amounts.</returns>
35
+
Task<SwapQuoteAg>GetSwapQuote(
36
+
PublicKeyinputMint,
37
+
PublicKeyoutputMint,
38
+
BigIntegeramount,
39
+
ushort?slippageBps=null,
40
+
List<string>excludeDexes=null,
41
+
boolonlyDirectRoutes=false,
42
+
ushort?platformFeeBps=null,
43
+
ushort?maxAccounts=null
44
+
);
45
+
46
+
/// <summary>
47
+
/// Creates a transaction to execute a swap for a specified pair of input/output token mint.
0 commit comments