Skip to main content

UniswapExchangeRateTask

Fetch the swap price from UniSwap.


Fields

NameTypeDescription
 inTokenAddress

string

The input token address.

 inTokenAmount

double

The amount of tokens to swap.

 outTokenAddress

string

The output token address.

 provider

string

The RPC provider to use for the swap.

 slippage

double

The allowable slippage in percent for the swap.

 version

The version of the Uniswap exchange to use.

Enums

 Version

ValueNameDescription
 0VERSION_V2
 1VERSION_V3