# Route

```typescript
constructor(pairs: Pair[], input: Token)
```

The Route entity represents one or more ordered Uniswap pairs with a fully specified path from input token to output token.

## Example

```typescript
import { ChainId, Token, TokenAmount, Pair, Route } from '@uniswap/sdk'

const HOT = new Token(ChainId.MAINNET, '0xc0FFee0000000000000000000000000000000000', 18, 'HOT', 'Caffeine')
const NOT = new Token(ChainId.MAINNET, '0xDeCAf00000000000000000000000000000000000', 18, 'NOT', 'Caffeine')
const HOT_NOT = new Pair(new TokenAmount(HOT, '2000000000000000000'), new TokenAmount(NOT, '1000000000000000000'))

const route = new Route([HOT_NOT], NOT)
```

## Properties

### pairs

```typescript
pairs: Pair[]
```

The ordered pairs that the route is comprised of.

### path

```typescript
path: Token[]
```

The full path from input token to output token.

### input

```typescript
input: string
```

The input token.

### output

```typescript
output: string
```

The output token.

### midPrice

```typescript
midPrice: Price
```

Returns the current mid price along the route.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.quickswap.exchange/technical-reference/sdk/route.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
