# @coral-xyz/anchor

> Anchor client

Latest version **0.32.1** (published 2025-10-10) · (MIT OR Apache-2.0) license · 0 weekly downloads

## Install

```sh
npm install @coral-xyz/anchor
pnpm add @coral-xyz/anchor
yarn add @coral-xyz/anchor
bun add @coral-xyz/anchor
```

## Health

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

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

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.32.1 |
| Published | 2025-10-10 |
| First published | 2022-12-16 |
| Weekly downloads | 0 |
| License | (MIT OR Apache-2.0) |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=17 |
| Dependencies | 13 |
| Unpacked size | 1.7 MB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 5132 |
| Maintainers | armaniferrante, solana-devs |

## Links

- npm: https://www.npmjs.com/package/@coral-xyz/anchor
- Repository: https://github.com/coral-xyz/anchor
- Homepage: https://github.com/coral-xyz/anchor#readme
- Issues: https://github.com/coral-xyz/anchor/issues
- npm.io page: https://npm.io/package/@coral-xyz/anchor

## Dependencies (13)

- [bs58](https://npm.io/package/bs58.md) ^4.0.1
- [pako](https://npm.io/package/pako.md) ^2.0.3
- [toml](https://npm.io/package/toml.md) ^3.0.0
- [bn.js](https://npm.io/package/bn.js.md) ^5.1.2
- [camelcase](https://npm.io/package/camelcase.md) ^6.3.0
- [cross-fetch](https://npm.io/package/cross-fetch.md) ^3.1.5
- [superstruct](https://npm.io/package/superstruct.md) ^0.15.4
- [@noble/hashes](https://npm.io/package/@noble/hashes.md) ^1.3.1
- [buffer-layout](https://npm.io/package/buffer-layout.md) ^1.2.2
- [eventemitter3](https://npm.io/package/eventemitter3.md) ^4.0.7
- [@solana/web3.js](https://npm.io/package/@solana/web3.js.md) ^1.69.0
- [@coral-xyz/borsh](https://npm.io/package/@coral-xyz/borsh.md) ^0.31.1
- [@coral-xyz/anchor-errors](https://npm.io/package/@coral-xyz/anchor-errors.md) ^0.31.1

## Recent versions

- 0.32.1 (latest) — 2025-10-10
- 0.32.0 — 2025-10-09
- 0.31.1 — 2025-04-20
- 0.31.0 — 2025-03-09
- 0.30.1 — 2024-06-20
- 0.30.0 — 2024-04-15
- 0.29.0 — 2023-10-16
- 0.28.1-beta.2 — 2023-08-27
- 0.28.1-beta.1 — 2023-06-21
- 0.28.0 — 2023-06-09
- 0.27.0 — 2023-03-08
- 0.26.0 — 2022-12-16

## README

# @coral-xyz/anchor

[![npm](https://img.shields.io/npm/v/@coral-xyz/anchor.svg?color=blue)](https://www.npmjs.com/package/@coral-xyz/anchor)
[![Docs](https://img.shields.io/badge/docs-typedoc-blue)](https://coral-xyz.github.io/anchor/ts/index.html)

TypeScript client for Anchor programs.

## Note

- `@coral-xyz/anchor` depends on node.js native modules. Therefore, webpack 5 will not work with current version. You will either need to rollback to webpack 4, or use a polyfill for each missing dependency.

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