swapExactETHForTokens

This method swaps an exact amount of ether for an ERC20 token (_token1).

Function

function swapExactETHForTokens(
    address _to,
    address _token,
    uint _amountOutMin,
    uint _deadline
  ) external payable returns (uint amountOut);

Parameters

Return values

Last updated