LLMs.txt: agent-readable Markdown index of this site at /llms.txt
This page documents the v2 SDK. See the v4 SDK for the current version.

Uniswap v2 SDK Overview

Get started with Uniswap v2 SDK concepts, guides, and integration resources.

The Uniswap v2 SDK provides abstractions to assist you with interacting with the Uniswap v2 smart contracts in a TypeScript/JavaScript environment (for example websites and node scripts).

It uses the Core SDK for shared primitives across Uniswap SDKs.

Installation

To interact with the v2 SDK, install the packages through npm:

npm i --save @uniswap/v2-sdk
npm i --save @uniswap/sdk-core

Package badges

npm versionnpm bundle sizeDiscord

Guides

Use these guides to implement common v2 SDK workflows.