# @project-serum/swap

> Client for swapping on the Serum DEX

Latest version **0.1.0-alpha.35** (published 2021-11-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install @project-serum/swap
pnpm add @project-serum/swap
yarn add @project-serum/swap
bun add @project-serum/swap
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0-alpha.35 |
| Published | 2021-11-23 |
| First published | 2020-11-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 6 |
| Unpacked size | 80.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 271 |
| Maintainers | garywang, nishadsingh, nathanielparke, armaniferrante, seb_alameda, jhlx |

## Links

- npm: https://www.npmjs.com/package/@project-serum/swap
- Repository: https://github.com/project-serum/serum-ts
- Homepage: https://github.com/project-serum/serum-ts#readme
- Issues: https://github.com/project-serum/serum-ts/issues
- npm.io page: https://npm.io/package/@project-serum/swap

## Dependencies (6)

- [bn.js](https://npm.io/package/bn.js.md) ^5.1.2
- [base64-js](https://npm.io/package/base64-js.md) ^1.5.1
- [@solana/web3.js](https://npm.io/package/@solana/web3.js.md) ^1.24.0
- [@solana/spl-token](https://npm.io/package/@solana/spl-token.md) ^0.1.6
- [@project-serum/serum](https://npm.io/package/@project-serum/serum.md) ^0.13.34
- [@solana/spl-token-registry](https://npm.io/package/@solana/spl-token-registry.md) ^0.2.214

## Recent versions

- 0.1.0-alpha.35 (latest) — 2021-11-23
- 0.1.0-alpha.34 — 2021-10-22
- 0.1.0-alpha.33 — 2021-10-22
- 0.1.0-alpha.32 — 2021-08-19
- 0.1.0-alpha.31 — 2021-06-24
- 0.1.0-alpha.30 — 2021-06-24
- 0.1.0-alpha.29 — 2021-06-24
- 0.1.0-alpha.28 — 2021-06-23
- 0.1.0-alpha.27 — 2021-06-23
- 0.1.0-alpha.26 — 2021-06-23
- 0.1.0-alpha.25 — 2021-06-23
- 0.1.0-alpha.24 — 2021-06-15
- 0.1.0-alpha.23 — 2021-06-14
- 0.1.0-alpha.22 — 2021-06-05
- 0.1.0-alpha.21 — 2021-06-05
- … 37 more at https://npm.io/package/@project-serum/swap/versions

## README

# Swap

[![Build Status](https://travis-ci.com/project-serum/serum-ts.svg?branch=master)](https://travis-ci.com/project-serum/serum-ts)
[![npm (scoped)](https://img.shields.io/npm/v/@project-serum/swap)](https://www.npmjs.com/package/@project-serum/swap)
[![Discord Chat](https://img.shields.io/discord/739225212658122886?color=blueviolet)](https://discord.com/channels/739225212658122886)
[![Documentation](https://img.shields.io/badge/typedoc-documentation-blue)](https://project-serum.github.io/serum-ts/swap/classes/swap.html)
[![License](https://img.shields.io/github/license/project-serum/serum-dex?color=blue)](https://opensource.org/licenses/Apache-2.0)

Client library for swapping directly on the serum orderbook.
The Solana program can be found [here](https://github.com/project-serum/swap).

## Installation

Using npm:

```
npm install @project-serum/swap
```

Using yarn:

```
yarn add @project-serum/swap
```

## API Reference

[API Reference](https://project-serum.github.io/serum-ts/swap/classes/swap.html).

---
_Source: https://npm.io/package/@project-serum/swap · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
