Balancer SDK

The Balancer SDK is a Typescript/Javascript library for interfacing with the Balancer protocol. This includes common contract interactions such as add/remove liquidity and swaps.

npm versionopen in new window

Smart Order Router functionality is accessed via the Balancer API. Find details in the API Section.

Installation

Install the package with

Guides and Examples

For detailed guides explaining how to use the SDK for common actions please see Developer Guides.

There are also detailed examples that run against a local fork in the SDK repoopen in new window.