Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

Solana SPL Token

JavaScript API for interacting with Solana's SPL Token program.

Crypto and web3NPM

GitHubWebsite

1. License

License from npm.

github.com/solana-program/token-2022

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What Solana SPL Token does

The package's source lives in the solana-program/token-2022 repository, which holds the on-chain Token 2022 program, a second ElGamal registry program and JS and Rust clients generated from the program's IDL; its latest release notes add build verification steps and an audit link.

Solana SPL Token popularity

57 / 100
Gid Score, #1270 overall
2.2M
downloads a week, npm
227
GitHub stars
11
agent projects use it
Solana SPL Token: downloads per weeknpm, @solana/spl-token 2,164,129
Solana SPL Token: GitHub starssolana-program/token-2022 227

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How Solana SPL Token is used

  • Solana SPL Token is a dependency in 11 of the 6,258 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750); counting those, it appears in 1,087 projects, and what it is used with below comes from all of them.
  • Projects that use it most often also use Solana Web3.js (98.9%), Anchor (30.9%), Solana Wallet Adapter (29.3%).

By coding agent

8 projects, 0.3%
5 projects, 0.2%

Often used with

In 98.9% of its projects
In 30.9% of its projects
In 29.3% of its projects
In 76.4% of its projects
In 23.1% of its projects
In 22.1% of its projects
In 25.9% of its projects
In 34.4% of its projects

Solana SPL Token in practice

Strengths

Generated and legacy clients in JS and Rust

The README lists four clients for the token-2022 program. They are a JS client auto-generated with Kit, a JS-legacy client built on <code>@solana/web3.js</code>, an auto-generated Rust client and a Rust legacy client.

Client generation from the IDL

The token-2022 program has a published <code>idl.json</code>. Once the IDL has been generated, the README says to run <code>pnpm install</code> once, then <code>make generate-clients</code>.

v11.1.0 build can be verified

The program@v11.1.0 release notes say the build uses solana-verifiable-build. They give the <code>solana-verify</code> commands and the expected executable hash, and they point to public verification through OtterSec's API.

Audit report linked for v11.1.0

The latest release notes link an audit report for that release. The report is a PDF in the anza-xyz security-audits repository.

Watch out for

README's npm badge names another package

The README's npm badge links to <code>@solana-program/token-2022</code>. None of the sources mention <code>@solana/spl-token</code> by name.

Two JS clients, one labeled legacy

The README lists a Kit-generated JS client and a "JS-legacy" client that uses <code>@solana/web3.js</code>. Apart from those labels, the README does not explain how the two differ.

Local validator needs both programs built

Before you start the test validator, you must build both the token-2022 program and the ElGamal registry program.

Start a local validator with both programs

make build-sbf-program # you only need to run this once
make build-sbf-confidential-elgamal-registry # you only need to run this once
make restart-test-validator

More about Solana SPL Token

Packages around it
  • @solana/web3.js: Solana JS SDK
  • @coral-xyz: Anchor framework
  • @solana/wallet-adapter-react: React wallet connection
  • @metaplex-foundation: Token and NFT metadata
  • ts-node: Run TypeScript in Node
  • dotenv: Load .env variables
More in Crypto and web3

Alternatives

Solana SPL Token This page

Apache-2.0Gid 572.2M/wk

Compare Solana SPL Token with another tool

Get started

Install it.

npm install @solana/spl-token

Rules for your agent

Paste into AGENTS.md or CLAUDE.md
## SPL Token (Token 2022)
- Check which JS client the project uses. It is either the Kit-generated client in `clients/js` or the JS-legacy client in `clients/js-legacy`, which uses `@solana/web3.js`.
- Build both programs with `make build-sbf-program` and `make build-sbf-confidential-elgamal-registry` before running `make restart-test-validator`.
- Stop the local validator with `make stop-test-validator`.
- Once the IDL has been generated, run `pnpm install` (only once), then `make generate-clients`.
- Run program checks with `make test-program`, `make format-check-program` and `make clippy-program`.
- The Token 2022 program id is `TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb`. Its IDL can be fetched with `npx @solana-program/program-metadata@latest fetch idl TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb --output ./idl.json`.