# @solana/spl-stake-pool

> SPL Stake Pool Program JS API

Latest version **1.1.8** (published 2024-10-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install @solana/spl-stake-pool
pnpm add @solana/spl-stake-pool
yarn add @solana/spl-stake-pool
bun add @solana/spl-stake-pool
```

## Health

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

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

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.8 |
| Published | 2024-10-17 |
| First published | 2021-12-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 7 |
| Unpacked size | 5.5 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4239 |
| 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-stake-pool
- 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-stake-pool

## Dependencies (7)

- [bn.js](https://npm.io/package/bn.js.md) ^5.2.0
- [buffer](https://npm.io/package/buffer.md) ^6.0.3
- [superstruct](https://npm.io/package/superstruct.md) ^2.0.2
- [buffer-layout](https://npm.io/package/buffer-layout.md) ^1.2.2
- [@solana/web3.js](https://npm.io/package/@solana/web3.js.md) ^1.95.3
- [@solana/spl-token](https://npm.io/package/@solana/spl-token.md) 0.4.9
- [@solana/buffer-layout](https://npm.io/package/@solana/buffer-layout.md) ^4.0.1

## Recent versions

- 1.1.8 (latest) — 2024-10-17
- 1.1.7 — 2024-10-14
- 1.1.6 — 2024-10-08
- 1.1.5 — 2024-06-04
- 1.1.4 — 2024-06-03
- 1.1.3 — 2024-04-29
- 1.1.2 — 2024-04-19
- 1.1.1 — 2024-04-18
- 1.1.0 — 2024-03-22
- 1.0.1 — 2024-02-20
- 1.0.0 — 2024-01-25
- 0.7.0 — 2023-09-13
- 0.6.5 — 2022-12-15
- 0.6.4 — 2022-01-28
- 0.6.3 — 2021-12-30

## README

# TypeScript bindings for stake-pool program

For use with both node.js and in-browser.

## Installation

```
npm install
```

## Build and run

In the `js` folder:

```
npm run build
```

The build is available at `dist/index.js` (or `dist.browser/index.iife.js` in the browser).

## Browser bundle
```html
<!-- Development (un-minified) -->
<script src="https://unpkg.com/@solana/spl-stake-pool@latest/dist.browser/index.iife.js"></script>

<!-- Production (minified) -->
<script src="https://unpkg.com/@solana/spl-stake-pool@latest/dist.browser/index.iife.min.js"></script>
```

## Test

```
npm test
```

## Usage

### JavaScript
```javascript
const solanaStakePool = require('@solana/spl-stake-pool');
console.log(solanaStakePool);
```

### ES6
```javascript
import * as solanaStakePool from '@solana/spl-stake-pool';
console.log(solanaStakePool);
```

### Browser bundle
```javascript
// `solanaStakePool` is provided in the global namespace by the script bundle.
console.log(solanaStakePool);
```

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