\UniSwapAPI
Method
HTTP request
Description
AddLiquidity
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/moon-up/moon-sdk-go"
)
func main() {
authorization := "authorization_example" // string |
name := "name_example" // string |
uniswapInput := *openapiclient.NewUniswapInput() // UniswapInput |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UniSwapAPI.AddLiquidity(context.Background(), name).Authorization(authorization).UniswapInput(uniswapInput).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UniSwapAPI.AddLiquidity``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AddLiquidity`: TransactionAPIResponse
fmt.Fprintf(os.Stdout, "Response from `UniSwapAPI.AddLiquidity`: %v\n", resp)
}Path Parameters
Name
Type
Description
Notes
Other Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
RemoveLiquidity
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
SwapExactETHForTokens
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
SwapExactTokensForTokens
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Name
Type
Description
Notes