@centurion-dex/v3-sdk / Exports / SwapRouter
Class: SwapRouter
Last modified:
Represents the Centurion 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 | TradeCurrency, Currency, TradeType | TradeCurrency, Currency, TradeType[] | - |
options | SwapOptions | options for the call parameters |