{
 "kind": "tool",
 "slug": "solana-spl-token",
 "path": "tools/solana-spl-token/",
 "name": "Solana SPL Token",
 "maker": null,
 "density": "profile",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Crypto and web3",
   "tools/web3/"
  ]
 ],
 "lead": "JavaScript API for interacting with Solana's SPL Token program.",
 "chips": [
  {
   "label": "Crypto and web3",
   "path": "tools/web3/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install @solana/spl-token"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/solana-program/token-2022"
  },
  {
   "label": "Website",
   "href": "https://github.com/solana-program/token-2022#readme"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "Apache-2.0",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/solana-program/token-2022"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 24, 2026",
   "note": "Latest GitHub release Nov 4, 2026. ",
   "src": "https://github.com/solana-program/token-2022"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "11 projects",
   "status": "info",
   "sub": "#8 of 155 in its category",
   "note": "Dependency in 11 public GitHub projects set up for AI coding agents that we scanned (0.2%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Solana SPL Token does",
   "parts": [
    {
     "t": "prose",
     "text": "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."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Solana SPL Token popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "57",
       "of": "/ 100",
       "l": "Gid Score, #1270 overall"
      },
      {
       "n": "2.2M",
       "l": "downloads a week, npm"
      },
      {
       "n": "227",
       "l": "GitHub stars"
      },
      {
       "n": "11",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How Solana SPL Token is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "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%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "8 projects, 0.3%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "5 projects, 0.2%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 98.9% of its projects",
       "v": "Solana Web3.js",
       "path": "tools/solana-web3-js/"
      },
      {
       "l": "In 30.9% of its projects",
       "v": "Anchor",
       "path": "tools/coral-xyz/"
      },
      {
       "l": "In 29.3% of its projects",
       "v": "Solana Wallet Adapter",
       "path": "tools/solana-wallet-adapter-react/"
      },
      {
       "l": "In 76.4% of its projects",
       "v": "TypeScript",
       "path": "tools/typescript/"
      },
      {
       "l": "In 23.1% of its projects",
       "v": "ts-node",
       "path": "tools/ts-node/"
      },
      {
       "l": "In 22.1% of its projects",
       "v": "Metaplex",
       "path": "tools/metaplex-foundation/"
      },
      {
       "l": "In 25.9% of its projects",
       "v": "Axios",
       "path": "tools/axios/"
      },
      {
       "l": "In 34.4% of its projects",
       "v": "dotenv",
       "path": "tools/dotenv/"
      }
     ]
    }
   ]
  },
  {
   "id": "profile",
   "nav": "Profile",
   "h2": "Solana SPL Token in practice",
   "parts": [
    {
     "t": "h3",
     "text": "Strengths"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Generated and legacy clients in JS and Rust",
       "v": "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."
      },
      {
       "l": "Client generation from the IDL",
       "v": "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>."
      },
      {
       "l": "v11.1.0 build can be verified",
       "v": "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."
      },
      {
       "l": "Audit report linked for v11.1.0",
       "v": "The latest release notes link an audit report for that release. The report is a PDF in the anza-xyz security-audits repository."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Watch out for"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "README's npm badge names another package",
       "v": "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."
      },
      {
       "l": "Two JS clients, one labeled legacy",
       "v": "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."
      },
      {
       "l": "Local validator needs both programs built",
       "v": "Before you start the test validator, you must build both the token-2022 program and the ElGamal registry program."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Start a local validator with both programs"
    },
    {
     "t": "tabs",
     "label": "Example",
     "items": [
      {
       "tab": "Sh",
       "code": "make build-sbf-program # you only need to run this once\nmake build-sbf-confidential-elgamal-registry # you only need to run this once\nmake restart-test-validator"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "profile",
   "h2": "More about Solana SPL Token",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Packages around it",
       "items": [
        "@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"
       ]
      },
      {
       "title": "More in Crypto and web3",
       "path": "tools/web3/",
       "items": [
        {
         "text": "viem",
         "path": "tools/viem/"
        },
        {
         "text": "ethers.js",
         "path": "tools/ethers/"
        },
        {
         "text": "Solana Web3.js",
         "path": "tools/solana-web3-js/"
        },
        {
         "text": "wagmi",
         "path": "tools/wagmi/"
        },
        {
         "text": "TweetNaCl.js",
         "path": "tools/tweetnacl/"
        },
        {
         "text": "Hardhat",
         "path": "tools/hardhat/"
        },
        {
         "text": "OpenZeppelin Contracts",
         "path": "tools/openzeppelin/"
        },
        {
         "text": "Hardhat Toolbox",
         "path": "tools/nomicfoundation-hardhat-toolbox/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Solana SPL Token",
       "me": true,
       "facts": [
        "Apache-2.0",
        "Gid 57",
        "2.2M/wk"
       ]
      }
     ],
     "more": "Compare Solana SPL Token with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install @solana/spl-token"
    },
    {
     "t": "h3",
     "text": "Rules for your agent"
    },
    {
     "t": "rules",
     "label": "Paste into AGENTS.md or CLAUDE.md",
     "text": "## SPL Token (Token 2022)\n- 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`.\n- Build both programs with `make build-sbf-program` and `make build-sbf-confidential-elgamal-registry` before running `make restart-test-validator`.\n- Stop the local validator with `make stop-test-validator`.\n- Once the IDL has been generated, run `pnpm install` (only once), then `make generate-clients`.\n- Run program checks with `make test-program`, `make format-check-program` and `make clippy-program`.\n- 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`.\n"
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm @solana/spl-token"
  ],
  [
   "Category",
   "Crypto and web3"
  ],
  [
   "License",
   "Apache-2.0"
  ],
  [
   "Latest version",
   "program@v11.1.0, September 23, 2026"
  ],
  [
   "On GitHub since",
   "May 2024"
  ],
  [
   "Gid Score",
   "56.9"
  ],
  [
   "Rank in category",
   "#8 of 155"
  ],
  [
   "GitHub",
   "solana-program/token-2022"
  ],
  [
   "Last change",
   "Nov 24, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/solana-program.png"
}