# @solana/spl-token-swap

> SPL Token Swap JavaScript API

Latest version **0.4.4** (published 2024-10-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install @solana/spl-token-swap
pnpm add @solana/spl-token-swap
yarn add @solana/spl-token-swap
bun add @solana/spl-token-swap
```

## Health

**Score 40/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.4 |
| Published | 2024-10-17 |
| First published | 2020-09-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 174 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4238 |
| Author | Solana Labs Maintainers |
| Maintainers | nickfrosty, mcintyre94, 2501babe, lorisleiva, buffalojoec, ngundotra, _chido, steveluscher, seanyoung, tyera, joncinque, ryoqun, trent-solana, jordansexton |

## Links

- npm: https://www.npmjs.com/package/@solana/spl-token-swap
- Repository: https://github.com/solana-labs/solana-program-library
- Homepage: https://solana.com/
- Issues: https://github.com/solana-labs/solana-program-library/issues
- npm.io page: https://npm.io/package/@solana/spl-token-swap

## Dependencies (2)

- [@solana/buffer-layout](https://npm.io/package/@solana/buffer-layout.md) ^4.0.0
- [@solana/buffer-layout-utils](https://npm.io/package/@solana/buffer-layout-utils.md) ^0.2.0

## Recent versions

- 0.4.4 (latest) — 2024-10-17
- 0.4.3 — 2024-04-29
- 0.4.2 — 2024-04-19
- 0.4.1 — 2024-04-18
- 0.4.0 — 2023-06-01
- 0.2.2 — 2023-05-01
- 0.2.1 — 2022-08-30
- 0.2.0 — 2022-06-07
- 0.1.4 — 2022-05-19
- 0.1.3 — 2022-03-11
- 0.1.2 — 2021-07-26
- 0.1.1 — 2021-07-23
- 0.1.0 — 2021-02-04
- 0.0.4 — 2020-11-01
- 0.0.3 — 2020-11-01
- … 2 more at https://npm.io/package/@solana/spl-token-swap/versions

## README

# Token-swap JavaScript API

The Token-swap JavaScript library comprises:

* A library to interact with the on-chain program
* A test client that exercises the program
* Scripts to facilitate building the program

## Getting Started

First fetch the npm dependencies, including `@solana/web3.js`, by running:
```sh
$ npm install
```

### Build the on-chain program

```sh
$ npm run build:program
```

### Run the test client

```sh
$ npm run start-with-test-validator
```

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