SwapExactTokensForTokens
Sushiswap Action Plugin - SwapExactTokensForTokens
Description
Swaps an exact amount of tokens for as much ETH as possible, along the route determined by the path.
Method
swapExactTokensForTokens(uint256, uint256, address[], address, uint256)
Input Parameters
Name | Plugin Type | Description |
---|---|---|
to |
| Sushiswap Router address |
Method Parameters
Name | Plugin Type | Description |
---|---|---|
amountIn |
| The amount of input tokens to send. |
amountOutMin |
| The minimum amount of output tokens that must be received for the transaction not to revert. |
path |
| An array of token addresses. |
to |
| Recipient of the output tokens. |
deadline |
| Unix timestamp after which the transaction will revert. |
Example
Example with initParams
Example without initParams
Learn more
Learn more about Sushiswap SwapExactTokensForTokens function here
Last updated