UniSwapApi
UniSwapApi
Method
HTTP request
Description
addLiquidity
Example
// Import classes:
//import org.usemoonai.moonsdk.infrastructure.*
//import org.usemoonai.moonsdk.models.*
val apiInstance = UniSwapApi()
val authorization : kotlin.String = authorization_example // kotlin.String |
val name : kotlin.String = name_example // kotlin.String |
val uniswapInput : UniswapInput = // UniswapInput |
try {
val result : TransactionAPIResponse = apiInstance.addLiquidity(authorization, name, uniswapInput)
println(result)
} catch (e: ClientException) {
println("4xx response calling UniSwapApi#addLiquidity")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling UniSwapApi#addLiquidity")
e.printStackTrace()
}Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
removeLiquidity
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
swapExactETHForTokens
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
swapExactTokensForTokens
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
Last updated