Skip to main content
Helpful?

SwapRouter

@uniswap/v3-sdk / Exports / SwapRouter

Class: SwapRouter

Represents the Uniswap 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
tradesTrade<Currency, Currency, TradeType> | Trade<Currency, Currency, TradeType>[]-
optionsSwapOptionsoptions for the call parameters

Returns

MethodParameters

Defined in

swapRouter.ts:64

Helpful?