\UniSwapAPI
All URIs are relative to https://beta.usemoon.ai
AddLiquidity
Post /uniswap/{name}/add-liquidity
RemoveLiquidity
Post /uniswap/{name}/remove-liquidity
SwapExactETHForTokens
Post /uniswap/{name}/swap-exact-eth-for-tokens
SwapExactTokensForTokens
Post /uniswap/{name}/swap-exact-tokens-for-tokens
AddLiquidity
TransactionAPIResponse AddLiquidity(ctx, name).Authorization(authorization).UniswapInput(uniswapInput).Execute()
Example
Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
name
string
Other Parameters
Other parameters are passed through a pointer to a apiAddLiquidityRequest struct via the builder pattern
authorization
string
uniswapInput | UniswapInput | |
Return type
TransactionAPIResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: application/json
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RemoveLiquidity
TransactionAPIResponse RemoveLiquidity(ctx, name).Authorization(authorization).UniswapInput(uniswapInput).Execute()
Example
Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
name
string
Other Parameters
Other parameters are passed through a pointer to a apiRemoveLiquidityRequest struct via the builder pattern
authorization
string
uniswapInput | UniswapInput | |
Return type
TransactionAPIResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: application/json
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SwapExactETHForTokens
TransactionAPIResponse SwapExactETHForTokens(ctx, name).Authorization(authorization).UniswapInput(uniswapInput).Execute()
Example
Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
name
string
Other Parameters
Other parameters are passed through a pointer to a apiSwapExactETHForTokensRequest struct via the builder pattern
authorization
string
uniswapInput | UniswapInput | |
Return type
TransactionAPIResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: application/json
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SwapExactTokensForTokens
TransactionAPIResponse SwapExactTokensForTokens(ctx, name).Authorization(authorization).UniswapInput(uniswapInput).Execute()
Example
Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
name
string
Other Parameters
Other parameters are passed through a pointer to a apiSwapExactTokensForTokensRequest struct via the builder pattern
authorization
string
uniswapInput | UniswapInput | |
Return type
TransactionAPIResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: application/json
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]