JupiterAggregatorClient class
Properties
-
client
→ Client
-
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getIndexedRouteMap()
→ Future<JupiterIndexedRouteMap>
-
Returns a hash map, input mint as key and an array of valid output mint
as values, token mints are indexed to reduce the file size
-
getQuote({required String inputMint, required String outputMint, required int amount, double? slippage, double? feeBps})
→ Future<List<JupiterRoute>>
-
Get quote for a given input mint, output mint and amount
inputMint
input token mint
outputMint
output token mint
amount
input token amount
slippage
slippage tolerance (percent)
feeBps
host fee bps
-
getRouteMap()
→ Future<Map<String, List<String>>>
-
Returns a hash map, input mint as key and an array of valid output mint
as values
-
getSwapTransactions({required String userPublicKey, required JupiterRoute route})
→ Future<JupiterSwapTransactions>
-
Get swap serialized transactions for a route
userPublicKey
swap user public key
route
route (@see getQuote)
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited