{"_id":"@axvn-vn/spl-token","_rev":"3-54f32f6ee0c79db0b33b0e522cdc05a5","name":"@axvn-vn/spl-token","dist-tags":{"latest":"0.0.0"},"versions":{"0.0.0":{"name":"@axvn-vn/spl-token","version":"0.0.0","license":"Apache-2.0","_id":"@axvn-vn/spl-token@0.0.0","maintainers":[{"name":"davidtran76","email":"Farm15ceo@gmail.com"}],"homepage":"https://github.com/solana-program/token-2022#readme","bugs":{"url":"https://github.com/solana-program/token-2022/issues"},"dist":{"shasum":"e05cca665edda68bbba700c89c554d2995d41c33","tarball":"https://registry.npmjs.org/@axvn-vn/spl-token/-/spl-token-0.0.0.tgz","fileCount":916,"integrity":"sha512-nXbKjD50IIa97p8EkNc79y8W8Osj0oG4SMwHRaVO+HKbO1176Yq1mqDgu/K8hZqDM1QV7a7EvZpketlkwYCRcw==","signatures":[{"sig":"MEUCIQCvhbdgbiAc7N4jZwfRPJysbDtAR8+bMAXP5VYK22H7NQIgDq1KtByk9CMWTaZVXdI44kbSB3sC4kPSzhZ5KS00p4c=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1997207},"main":"./lib/cjs/index.js","type":"module","types":"./lib/types/index.d.ts","module":"./lib/esm/index.js","engines":{"node":">=16"},"exports":{"types":"./lib/types/index.d.ts","import":"./lib/esm/index.js","require":"./lib/cjs/index.js"},"scripts":{"docs":"shx rm -rf docs && typedoc && shx cp .nojekyll docs/","lint":"eslint --max-warnings 0 .","nuke":"shx rm -rf node_modules package-lock.json || true","test":"npm run test:unit && npm run test:e2e-native && npm run test:e2e-2022","clean":"shx rm -rf lib **/*.tsbuildinfo || true","watch":"tsc --build --verbose --watch tsconfig.all.json","deploy":"npm run deploy:docs","format":"prettier --check src test","example":"node --experimental-specifier-resolution=node --loader ts-node/esm examples/createMintAndTransferTokens.ts","release":"npm run clean && npm run build","lint:fix":"eslint --fix .","postbuild":"shx echo '{ \"type\": \"commonjs\" }' > lib/cjs/package.json","reinstall":"npm run nuke && npm install","test:unit":"mocha test/unit","format:fix":"prettier --write src test","deploy:docs":"npm run docs && gh-pages --dest token/js --dist docs --dotfiles","test:e2e-2022":"TEST_PROGRAM_ID=TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb mocha test/e2e*","test:e2e-native":"mocha test/e2e"},"_npmUser":{"name":"davidtran76","email":"Farm15ceo@gmail.com"},"prettier":"@solana/prettier-config-solana","repository":{"url":"git+https://github.com/solana-program/token-2022.git","type":"git"},"_npmVersion":"11.17.0","description":"SPL Token Program JS API","directories":{},"sideEffects":false,"_nodeVersion":"24.19.0","dependencies":{"buffer":"^6.0.3","@axvn-vn/buffer-layout":"^4.0.0","@axvn-vn/spl-token-group":"^0.0.7","@axvn-vn/spl-token-metadata":"^0.1.6","@axvn-vn/buffer-layout-utils":"^0.3.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.4.0","chai":"^6.0.1","mocha":"^11.0.1","eslint":"^8.57.0","process":"^0.11.10","ts-node":"^10.9.2","typedoc":"^0.28.0","gh-pages":"^6.3.0","prettier":"^3.4.2","typescript":"^6.0.3","@types/chai":"^5.0.1","@types/node":"^26.0.0","@types/mocha":"^10.0.10","@axvn-vn/web3.js":"^1.95.5","chai-as-promised":"^8.0.1","@axvn-vn/spl-memo":"0.2.5","@types/node-fetch":"^2.6.12","eslint-config-prettier":"^10.0.1","eslint-plugin-prettier":"^5.2.1","@axvn-vn/codecs-strings":"7.0.0","@types/chai-as-promised":"^8.0.1","@typescript-eslint/parser":"^8.4.0","@axvn-vn/prettier-config-solana":"0.0.7","@typescript-eslint/eslint-plugin":"^8.4.0","eslint-plugin-require-extensions":"^0.1.1"},"peerDependencies":{"@axvn-vn/web3.js":"^1.95.5"},"_npmOperationalInternal":{"tmp":"tmp/spl-token_0.0.0_1787355480430_0.9273466130407833","host":"s3://npm-registry-packages-npm-production"},"deprecated":"DEPRECATED: This package has been removed. Do not use."}},"time":{"created":"2026-08-21T23:38:00.315Z","modified":"2026-08-22T16:10:54.792Z","0.0.0":"2026-08-21T23:38:00.589Z"},"bugs":{"url":"https://github.com/solana-program/token-2022/issues"},"license":"Apache-2.0","homepage":"https://github.com/solana-program/token-2022#readme","repository":{"url":"git+https://github.com/solana-program/token-2022.git","type":"git"},"description":"SPL Token Program JS API","maintainers":[{"name":"davidtran76","email":"Farm15ceo@gmail.com"},{"name":"nhamhuan","email":"Nhamhuan@gmail.com"}],"readme":"# `@solana/spl-token`\n\nA TypeScript library for interacting with the SPL Token and Token-2022 programs.\n\n> [!IMPORTANT]  \n> If you are using [@solana/web3.js version 2](https://github.com/solana-labs/solana-web3.js/?tab=readme-ov-file#whats-new-in-version-20)\n> , you should use the `@solana-program/token` and `@solana-program/token-2022` \n> packages instead.\n\n## Links\n\n- [TypeScript Docs](https://solana-labs.github.io/solana-program-library/token/js/)\n- [FAQs (Frequently Asked Questions)](#faqs)\n- [Install](#install)\n- [Build from Source](#build-from-source)\n\n## FAQs\n\n### How can I get support?\n\nPlease ask questions in the Solana Stack Exchange: https://solana.stackexchange.com/\n\nIf you've found a bug or you'd like to request a feature, please\n[open an issue](https://github.com/solana-labs/solana-program-library/issues/new).\n\n### No export named Token\n\nPlease see [upgrading from 0.1.x](#upgrading-from-01x).\n\n## Install\n\n```shell\nnpm install --save @solana/spl-token @solana/web3.js@1\n```\n_OR_\n```shell\nyarn add @solana/spl-token @solana/web3.js@1\n```\n\n## Build from Source\n\n0. Prerequisites\n\n* Node 16+\n* PNPM\n\nIf you have Node 16+, you can [activate PNPM with Corepack](https://pnpm.io/installation#using-corepack).\n\n1. Clone the project:\n```shell\ngit clone https://github.com/solana-program/token-2022.git\n```\n\n2. Navigate to the root of the repository:\n```shell\ncd token-2022\n```\n\n3. Build the on-chain programs:\n```shell\nmake build-sbf-program\nmake build-sbf-confidential-elgamal-registry\n```\n\n4. Navigate to the SPL Token library:\n```shell\ncd clients/js-legacy\n```\n\n5. Build the libraries in the repository:\n```shell\npnpm install\npnpm run build\n```\n\n6. Run the tests:\n```shell\npnpm run test\n```\n\n7. Run the example:\n```shell\npnpm run example\n```\n\n## Upgrading\n\n### Upgrading from 0.2.0\n\nThere are no breaking changes from 0.2.0, only new functionality for Token-2022.\n\n### Upgrading from 0.1.x\n\nWhen upgrading from spl-token 0.1.x, you may see the following error in your code:\n\n```\nimport {TOKEN_PROGRAM_ID, Token, AccountLayout} from '@solana/spl-token';\n                          ^^^^^\nSyntaxError: The requested module '@solana/spl-token' does not provide an export named 'Token'\n```\n\nThe `@solana/spl-token` library as of version 0.2.0 does not have the `Token`\nclass. Instead the actions are split up and exported separately.\n\nTo use the old version, install it with:\n\n```\nnpm install @solana/spl-token@0.1.8\n```\n\nOtherwise you can find documentation on how to use new versions on the\n[SPL docs](https://spl.solana.com/token) or\n[Solana Cookbook](https://solanacookbook.com/references/token.html).\n","readmeFilename":"README.md"}