Skip to main content

Path

The Path object represents a trade from a source token to a destination token.

Table of contents

Constructors

Properties

Constructors

constructor

new Path(options)

Parameters

NameTypeDescription
optionsObjectThe options for the path
options.fromTokenTokenThe source token
options.toTokenTokenThe destination token

Defined in

socket-v2-sdk/src/path.ts:22

Properties

fromToken

fromToken: Token

The source token

Defined in

socket-v2-sdk/src/path.ts:10


toToken

toToken: Token

The destination token

Defined in

socket-v2-sdk/src/path.ts:14