CenturionDEX

@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

swapRouter.ts:57

Properties

INTERFACE

Static INTERFACE: Interface

Defined in

swapRouter.ts:52

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

NameTypeDescription
tradesTradeCurrency, Currency, TradeType | TradeCurrency, Currency, TradeType[]-
optionsSwapOptionsoptions for the call parameters

Returns

MethodParameters

Defined in

swapRouter.ts:64