Constructs a new UniswapExchangeRateTask.
Optionalproperties: IUniswapExchangeRateTaskProperties to set
UniswapExchangeRateTask factoryAddress.
The input token address.
The amount of tokens to swap.
The output token address.
The RPC provider to use for the swap.
UniswapExchangeRateTask quoterAddress.
UniswapExchangeRateTask routerAddress.
The allowable slippage in percent for the swap.
The version of the Uniswap exchange to use.
Converts this UniswapExchangeRateTask to JSON.
JSON object
StaticcreateCreates a new UniswapExchangeRateTask instance using the specified properties.
Optionalproperties: IUniswapExchangeRateTaskProperties to set
UniswapExchangeRateTask instance
StaticdecodeDecodes an UniswapExchangeRateTask message from the specified reader or buffer.
Reader or buffer to decode from
Optionallength: numberMessage length if known beforehand
UniswapExchangeRateTask
StaticdecodeDecodes an UniswapExchangeRateTask message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
UniswapExchangeRateTask
StaticencodeEncodes the specified UniswapExchangeRateTask message. Does not implicitly verify messages.
UniswapExchangeRateTask message or plain object to encode
Optionalwriter: WriterWriter to encode to
Writer
StaticencodeEncodes the specified UniswapExchangeRateTask message, length delimited. Does not implicitly verify messages.
UniswapExchangeRateTask message or plain object to encode
Optionalwriter: WriterWriter to encode to
Writer
StaticfromCreates an UniswapExchangeRateTask message from a plain object. Also converts values to their respective internal types.
Plain object
UniswapExchangeRateTask
StaticgetGets the default type url for UniswapExchangeRateTask
OptionaltypeUrlPrefix: stringyour custom typeUrlPrefix(default "type.googleapis.com")
The default type url
StatictoCreates a plain object from an UniswapExchangeRateTask message. Also converts values to other types if specified.
UniswapExchangeRateTask
Optionaloptions: IConversionOptionsConversion options
Plain object
StaticverifyVerifies an UniswapExchangeRateTask message.
Plain object to verify
null if valid, otherwise the reason why it is not
Fetch the swap price from UniSwap.