Developers / Token standards

SPL Token and Token-2022

Last reviewed 1 December 2026.

Information, not advice. This page describes official Solana token programs and documentation. It is not financial, legal, investment, or tax advice, and it is not a recommendation to issue or purchase a token.

Safety: This site will never ask you to enter a seed phrase or private key. The official spl-token CLI signs with a keypair file on a machine you control. Do not paste a recovery phrase into a web “token creator.”

On Solana, fungible (and many non-fungible) tokens are accounts owned by a shared on-chain program, not a new program per token. Official documentation covers two programs that share a core instruction layout:

  • The original Token Program, in production since 2020 and described in SPL Token Basics.
  • Token-2022, also called the Token Extensions Program. Official Token-2022 documentation gives its program id as TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb and describes it as a strict superset of the original Token Program: the same instruction bytes for the original operations, plus new instructions and optional extensions.

Solana's Token-2022 overview states there are no plans to add new instructions to the original Token Program. New functionality is added in Token-2022 instead.

Mints, token accounts, and authorities

A mint holds mint-level configuration: decimals, supply, and authorities. A token account holds a balance of one mint for one owner. Wallets typically use an Associated Token Account, derived from the owner and the mint, so the address is predictable. Official docs note that a single associated-token program serves both the original Token Program and Token-2022; you still have to pass the correct token program id.

Two mint authorities matter for almost every audit of a Solana token:

  • Mint authority — can mint more tokens (increase supply).
  • Freeze authority — can freeze a token account so it cannot transfer.

Set Authority documents the SetAuthority instruction: the current authority signs, and the new authority may be another address or None. Setting an authority to None permanently removes that role. That is the official way to make a mint no longer mintable, or to remove freeze power.

You can read those fields from the mint account. Solana's cookbook and CLI documentation show querying a mint and inspecting mintAuthority / freezeAuthority; a null authority means it has been revoked.

Token-2022 adds further authority types for specific extensions. Official extension documentation is the place to check those, not this overview.

Token-2022 extensions

Extensions are optional features configured on a mint or token account, generally at initialization. Official docs emphasize that most extensions cannot be added later, so the feature set has to be chosen when the mint is created.

The Token-2022 program documentation lists mint extensions that include transfer fees, confidential transfers, metadata and a metadata pointer, non-transferable tokens, a permanent delegate, transfer hooks, interest-bearing tokens, pausing, and several group or scaled-UI helpers. Account extensions include memo-required transfers, immutable ownership, default account state, and a CPI guard.

Not every combination is valid. Official docs describe InvalidExtensionCombination when, for example, ScaledUiAmount and InterestBearingConfig are both present. Review the official combination rules before creating a mint.

Official tooling and a testnet flow

The SPL Token CLI reference is the official command-line interface for both programs. The default program is the original Token Program. --program-2022 selects Token-2022. The same reference warns that mint creation, authority changes, and transfers submit transactions, and that mainnet changes use real assets.

A typical official flow on devnet or localhost:

  1. Confirm the cluster (solana config / --url) and that you are not pointed at mainnet.
  2. Create a mint with the intended decimals and, for Token-2022, the extension flags you actually need.
  3. Create an associated token account and mint an initial amount to it, still on the test cluster.
  4. Inspect the mint. Confirm decimals, supply, and both authorities.
  5. If the design calls for a fixed supply, revoke mint authority with the official authorize / SetAuthority path to None. Revocation is permanent.
  6. Only after the test cluster behaviour matches the design should anyone consider a mainnet mint.

The official CLI reference shows this shape for a Token-2022 mint with metadata support (addresses omitted; run this only on a cluster you intend):

spl-token --program-2022 create-token \
  --decimals 6 \
  --enable-metadata

spl-token --program-2022 initialize-metadata \
  <MINT_ADDRESS> \
  "Example Token" \
  EXAMPLE \
  https://example.com/token.json

Libraries officially documented for the same instructions include @solana/web3.js helper packages and @solana/kit (see the Set Authority examples and the tools directory). Anchor is the usual framework when a mint is part of a larger on-chain program, not when you only need the CLI.

Metadata for the original Token Program is commonly added through a separate metadata program. Official Solana token basics point at Metaplex documentation for that path; this page does not duplicate it.

Checking mint and freeze authority

For a safety review of an existing mint, official tools are enough:

  • spl-token display <MINT> (and --program-2022 when the mint is a Token-2022 mint), or
  • a getMint / mint-account fetch in the official libraries, then read mintAuthority and freezeAuthority.

If mint authority is still a key or program, more units can be created by that authority. If freeze authority is still set, accounts can be frozen. A market or liquidity pool does not remove those powers.

Permanent delegate, transfer-hook, and pausable extensions, when present, are additional privileges documented in the Token-2022 extension guides. They will not show up if you only look for the original two authorities, so also inspect enabled extensions on a Token-2022 mint.

Scam red flags

  • A web form that asks for a seed phrase to “create an SPL token” or “revoke mint authority for you.”
  • A ticker that copies a well-known token at a different mint address than the one published by the project.
  • Mint or freeze authority still assigned to an unnamed wallet after a project claimed the supply was fixed or accounts could not be frozen. Check the mint with official tools; do not take a screenshot or a website badge as proof.
  • Token-2022 transfer fees, transfer hooks, or a permanent delegate that were not disclosed. Those are public on the mint, but only if you look.
  • Non-transferable or pausable configuration that makes an asset impossible to send, advertised as an ordinary tradable token.

Read next

Token issuance overview · Liquidity pools · Solana paths · Tools

Sources