Constructs a new SushiswapExchangeRateTask.
Optional
properties: ISushiswapExchangeRateTaskProperties to set
The input token address.
The amount of tokens to swap.
The output token address.
The RPC provider to use for the swap.
The allowable slippage in percent for the swap.
Static
createCreates a new SushiswapExchangeRateTask instance using the specified properties.
Optional
properties: ISushiswapExchangeRateTaskProperties to set
SushiswapExchangeRateTask instance
Static
decodeDecodes a SushiswapExchangeRateTask message from the specified reader or buffer.
Reader or buffer to decode from
Optional
length: numberMessage length if known beforehand
SushiswapExchangeRateTask
If the payload is not a reader or valid buffer
If required fields are missing
Static
decodeDecodes a SushiswapExchangeRateTask message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
SushiswapExchangeRateTask
If the payload is not a reader or valid buffer
If required fields are missing
Static
encodeEncodes the specified SushiswapExchangeRateTask message. Does not implicitly verify messages.
SushiswapExchangeRateTask message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
encodeEncodes the specified SushiswapExchangeRateTask message, length delimited. Does not implicitly verify messages.
SushiswapExchangeRateTask message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
fromCreates a SushiswapExchangeRateTask message from a plain object. Also converts values to their respective internal types.
Plain object
SushiswapExchangeRateTask
Static
getStatic
toCreates a plain object from a SushiswapExchangeRateTask message. Also converts values to other types if specified.
SushiswapExchangeRateTask
Optional
options: IConversionOptionsConversion options
Plain object
Static
verify
Fetch the swap price from SushiSwap.