Token Ecosystem

SPL Token Swap

An SPL program that implements a constant-product AMM (x*y=k) for swapping between two SPL tokens. It was one of the first DeFi primitives on Solana but has been largely superseded by more sophisticated DEXs like Raydium, Orca, and Meteora. The program manages liquidity pools and issues LP tokens to liquidity providers.

IDtoken-swap

Plain meaning

Start with the shortest useful explanation before going deeper.

An SPL program that implements a constant-product AMM (x*y=k) for swapping between two SPL tokens. It was one of the first DeFi primitives on Solana but has been largely superseded by more sophisticated DEXs like Raydium, Orca, and Meteora. The program manages liquidity pools and issues LP tokens to liquidity providers.

Mental model

Use the quick analogy first so the term is easier to reason about when you meet it in code, docs, or prompts.

Think of it as a building block that connects one definition to the larger Solana system around it.

Technical context

Place the term inside its Solana layer so the definition is easier to reason about.

SPL assets, token standards, metadata, and NFT primitives.

Why builders care

Turn the term from vocabulary into something operational for product and engineering work.

This term unlocks adjacent concepts quickly, so it works best when you treat it as a junction instead of an isolated definition.

AI handoff

AI handoff

Use this compact block when you want to give an agent or assistant grounded context without dumping the entire page.

SPL Token Swap (token-swap)
Category: Token Ecosystem
Definition: An SPL program that implements a constant-product AMM (x*y=k) for swapping between two SPL tokens. It was one of the first DeFi primitives on Solana but has been largely superseded by more sophisticated DEXs like Raydium, Orca, and Meteora. The program manages liquidity pools and issues LP tokens to liquidity providers.
Related: AMM (Automated Market Maker), Solana Program Library (SPL)
Glossary Copilot

Ask grounded Solana questions without leaving the glossary.

Use glossary context, relationships, mental models, and builder paths to get structured answers instead of generic chat output.

Explain this code

Optional: paste Anchor, Solana, or Rust code so the Copilot can map primitives back to glossary terms.

Ask a glossary-grounded question

Ask a glossary-grounded question

The Copilot will answer using the current term, related concepts, mental models, and the surrounding glossary graph.

Concept graph

See the term as part of a network, not a dead-end definition.

These branches show which concepts this term touches directly and what sits one layer beyond them.

Branch

AMM (Automated Market Maker)

A protocol that enables token swaps using algorithmic pricing against pooled liquidity instead of matching individual buyers and sellers. AMMs use mathematical formulas (typically constant product x*y=k) to determine prices based on the ratio of tokens in a liquidity pool. On Solana, major AMMs include Raydium, Orca, and Meteora.

Branch

Solana Program Library (SPL)

Solana Program Library—a collection of on-chain programs and client libraries maintained by Solana Labs. Key SPL programs include Token, Token-2022, Associated Token Account, Memo, Name Service, Stake Pool, and Account Compression. SPL programs are deployed to well-known addresses and serve as the standard building blocks for Solana applications.

Next concepts to explore

Keep the learning chain moving instead of stopping at one definition.

These are the next concepts worth opening if you want this term to make more sense inside a real Solana workflow.

DeFi

AMM (Automated Market Maker)

A protocol that enables token swaps using algorithmic pricing against pooled liquidity instead of matching individual buyers and sellers. AMMs use mathematical formulas (typically constant product x*y=k) to determine prices based on the ratio of tokens in a liquidity pool. On Solana, major AMMs include Raydium, Orca, and Meteora.

Token Ecosystem

Solana Program Library (SPL)

Solana Program Library—a collection of on-chain programs and client libraries maintained by Solana Labs. Key SPL programs include Token, Token-2022, Associated Token Account, Memo, Name Service, Stake Pool, and Account Compression. SPL programs are deployed to well-known addresses and serve as the standard building blocks for Solana applications.

Token Ecosystem

Token Account

An account that holds a balance of a specific token for a specific owner. Token accounts store: mint (which token), owner (who controls it), amount (balance), delegate (optional), and state (initialized/frozen). Each wallet needs a separate token account per token type. Token accounts require ~165 bytes and rent-exempt minimum of ~0.002 SOL.

Token Ecosystem

SPL Token Program

The original Solana Program Library token program (TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA) that implements fungible and non-fungible token operations. It manages mints (token definitions) and token accounts (balances). Core instructions include InitializeMint, MintTo, Transfer, Burn, Approve (delegation), and Revoke. All SPL tokens on mainnet before Token-2022 use this program.

Commonly confused with

Terms nearby in vocabulary, acronym, or conceptual neighborhood.

These entries are easy to mix up when you are reading quickly, prompting an LLM, or onboarding into a new layer of Solana.

Token Ecosystemspl-token

SPL Token Program

The original Solana Program Library token program (TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA) that implements fungible and non-fungible token operations. It manages mints (token definitions) and token accounts (balances). Core instructions include InitializeMint, MintTo, Transfer, Burn, Approve (delegation), and Revoke. All SPL tokens on mainnet before Token-2022 use this program.

AliasSPL Token
Token Ecosystemsoul-bound-token

Soulbound Token (SBT)

A non-transferable token permanently bound to a specific wallet, representing identity, credentials, achievements, or reputation. On Solana, soulbound tokens can be primarily implemented using Token-2022's non-transferable extension or transfer hooks that reject transfers, which prevents any transfer after minting. Used for proof of attendance, skill certifications, and on-chain identity.

AliasSBTAliasSoulbound NFT
Token Ecosystemtoken-2022

Token-2022 (Token Extensions)

The next-generation token program (TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb) that extends SPL Token with configurable extensions. Extensions include transfer fees, confidential transfers, transfer hooks, permanent delegate, non-transferable tokens, interest-bearing tokens, metadata, and more. Token-2022 is backwards-compatible with SPL Token for basic operations.

AliasToken ExtensionsAliasToken22
Related terms

Follow the concepts that give this term its actual context.

Glossary entries become useful when they are connected. These links are the shortest path to adjacent ideas.

DeFiamm

AMM (Automated Market Maker)

A protocol that enables token swaps using algorithmic pricing against pooled liquidity instead of matching individual buyers and sellers. AMMs use mathematical formulas (typically constant product x*y=k) to determine prices based on the ratio of tokens in a liquidity pool. On Solana, major AMMs include Raydium, Orca, and Meteora.

Token Ecosystemspl

Solana Program Library (SPL)

Solana Program Library—a collection of on-chain programs and client libraries maintained by Solana Labs. Key SPL programs include Token, Token-2022, Associated Token Account, Memo, Name Service, Stake Pool, and Account Compression. SPL programs are deployed to well-known addresses and serve as the standard building blocks for Solana applications.

More in category

Stay in the same layer and keep building context.

These entries live beside the current term and help the page feel like part of a larger knowledge graph instead of a dead end.

Token Ecosystem

SPL Token Program

The original Solana Program Library token program (TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA) that implements fungible and non-fungible token operations. It manages mints (token definitions) and token accounts (balances). Core instructions include InitializeMint, MintTo, Transfer, Burn, Approve (delegation), and Revoke. All SPL tokens on mainnet before Token-2022 use this program.

Token Ecosystem

Solana Program Library (SPL)

Solana Program Library—a collection of on-chain programs and client libraries maintained by Solana Labs. Key SPL programs include Token, Token-2022, Associated Token Account, Memo, Name Service, Stake Pool, and Account Compression. SPL programs are deployed to well-known addresses and serve as the standard building blocks for Solana applications.

Token Ecosystem

Token-2022 (Token Extensions)

The next-generation token program (TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb) that extends SPL Token with configurable extensions. Extensions include transfer fees, confidential transfers, transfer hooks, permanent delegate, non-transferable tokens, interest-bearing tokens, metadata, and more. Token-2022 is backwards-compatible with SPL Token for basic operations.

Token Ecosystem

Mint

An on-chain account defining a token type. A mint specifies: supply (total minted), decimals (0 for NFTs, 6 for USDC, 9 for most tokens), mint authority (who can mint), and optional freeze authority. Each unique token (USDC, JitoSOL, etc.) has exactly one mint account. Mint address serves as the token's unique identifier.