Class: SwapRouter
Represents the SwapX V3 SwapRouter, and has static methods for helping execute trades.
Table of contents
Constructors
Properties
Methods
Constructors
constructor
Private
new SwapRouter()
Cannot be constructed.
Defined in
Properties
INTERFACE
Static
INTERFACE: Interface
Defined in
Methods
swapCallParameters
Static
swapCallParameters(trades
, options
): MethodParameters
Produces the on-chain method name to call and the hex encoded parameters to pass as arguments for a given trade.
Parameters
Name | Type | Description |
---|---|---|
trades | Trade Currency , Currency , TradeType | Trade Currency , Currency , TradeType [] | - |
options | SwapOptions | options for the call parameters |