# @orca-so/whirlpools-sdk

> Typescript SDK to interact with Orca's Whirlpool program.

Latest version **0.22.0** (published 2026-08-10) · SEE LICENSE IN LICENSE license · 0 weekly downloads

## Install

```sh
npm install @orca-so/whirlpools-sdk
pnpm add @orca-so/whirlpools-sdk
yarn add @orca-so/whirlpools-sdk
bun add @orca-so/whirlpools-sdk
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; no vulnerabilities; has provenance; high maintenance score; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.22.0 |
| Published | 2026-08-10 |
| First published | 2022-05-13 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN LICENSE |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 1.3 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 567 |
| Author | team@orca.so |
| Maintainers | tmoc.orca, yugure-orca, wjthieme-orca |
| Keywords | solana, crypto, defi, dex, amm |

## Links

- npm: https://www.npmjs.com/package/@orca-so/whirlpools-sdk
- Repository: https://github.com/orca-so/whirlpools
- Homepage: https://orca.so
- Issues: https://github.com/orca-so/whirlpools/issues
- npm.io page: https://npm.io/package/@orca-so/whirlpools-sdk

## Dependencies (3)

- [decimal.js](https://npm.io/package/decimal.js.md) ^10.5.0
- [tiny-invariant](https://npm.io/package/tiny-invariant.md) ^1.3.1
- [@orca-so/common-sdk](https://npm.io/package/@orca-so/common-sdk.md) 0.7.1

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 0.22.0 (latest) — 2026-08-10
- 0.15.0-beta.1 (beta) — 2025-06-10
- 0.13.0-alpha.4 (alpha) — 2024-06-10
- 0.21.0 — 2026-06-17
- 0.20.0 — 2026-02-16
- 0.19.0 — 2026-02-05
- 0.18.0 — 2026-01-23
- 0.17.4 — 2025-12-11
- 0.17.3 — 2025-12-04
- 0.17.2 — 2025-12-04
- 0.17.1 — 2025-12-04
- 0.17.0 — 2025-11-14
- 0.16.0 — 2025-09-10
- 0.15.0 — 2025-07-03
- 0.14.0 — 2025-05-07
- … 98 more at https://npm.io/package/@orca-so/whirlpools-sdk/versions

## README

# Legacy Whirlpools SDK

Whirpools is an open-source concentrated liquidity AMM contract on the Solana blockchain.

The legacy Whirlpools Typescript SDK (`@orca-so/whirlpools-sdk`) allows for easy interaction with a deployed Whirlpools program and is a solid choice if you are working the Solana Web3.js.

The contract has been audited by Kudelski and Neodyme.

## Installation

In your project, run:

```bash
yarn add "@orca-so/whirlpools-sdk"
yarn add "@orca-so/common-sdk"
yarn add "@coral-xyz/anchor@0.31.1"
yarn add "@solana/web3.js"
yarn add "@solana/spl-token"
yarn add "decimal.js"
```

## Usage

Visit our [documentation site on GitHub](https://dev.orca.so/) to learn more about how to use this SDK.

## Tests

To run tests for the SDK run:

```
yarn workspace @orca-so/whirlpools-sdk-integration test
```

# License

[Apache 2.0](https://choosealicense.com/licenses/apache-2.0/)

---
_Source: https://npm.io/package/@orca-so/whirlpools-sdk · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
