Developer Tools

SPL Crates (spl-token, spl-associated-token-account)

Rust crates providing client-side and on-chain interfaces for SPL programs. Key crates: `spl-token` (token instructions and state), `spl-associated-token-account` (ATA creation), `spl-memo` (memo instruction), `spl-token-2022` (Token Extensions). These crates provide instruction builders and state deserialization for interacting with SPL programs.

IDspl-crates

Plain meaning

Start with the shortest useful explanation before going deeper.

Rust crates providing client-side and on-chain interfaces for SPL programs. Key crates: `spl-token` (token instructions and state), `spl-associated-token-account` (ATA creation), `spl-memo` (memo instruction), `spl-token-2022` (Token Extensions). These crates provide instruction builders and state deserialization for interacting with SPL programs.

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 tool or abstraction that removes friction from shipping on Solana.

Technical context

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

Anchor, local validators, explorers, SDKs, and testing workflows.

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 Crates (spl-token, spl-associated-token-account) (spl-crates)
Category: Developer Tools
Definition: Rust crates providing client-side and on-chain interfaces for SPL programs. Key crates: `spl-token` (token instructions and state), `spl-associated-token-account` (ATA creation), `spl-memo` (memo instruction), `spl-token-2022` (Token Extensions). These crates provide instruction builders and state deserialization for interacting with SPL programs.
Related: SPL Token Program, Associated Token Account (ATA)
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

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.

Branch

Associated Token Account (ATA)

A deterministically derived token account for a given wallet and mint, using the PDA seeds [wallet, token_program, mint]. ATAs provide a canonical address so anyone can send tokens to a wallet without the recipient creating an account first. The ATA program creates the account on first use, funded by the sender.

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.

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

Associated Token Account (ATA)

A deterministically derived token account for a given wallet and mint, using the PDA seeds [wallet, token_program, mint]. ATAs provide a canonical address so anyone can send tokens to a wallet without the recipient creating an account first. The ATA program creates the account on first use, funded by the sender.

Developer Tools

Squads (Multisig)

A multisig protocol on Solana (Squads v3/v4) enabling M-of-N approval for transactions. Used to manage program upgrade authorities, treasury wallets, and DAO operations. Squads creates a multisig PDA that acts as the authority; members propose transactions that execute once the threshold is reached. Critical for production program security.

Developer Tools

solana-test-validator

A lightweight local Solana validator for development. Runs a single-node cluster on localhost:8899 (RPC) and localhost:8900 (WebSocket). Supports `--clone` to copy mainnet accounts, `--bpf-program` to load programs, and `--reset` to clear state. Processes transactions instantly without PoH delays. Useful for rapid iteration but doesn't simulate network conditions.

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.

Developer Toolsanchor-account-macro

#[account] Macro (Anchor)

The Anchor macro applied to structs to define on-chain account data layouts. `#[account]` auto-derives Borsh serialization, adds an 8-byte discriminator prefix (SHA-256 of 'account:<Name>'), and implements space calculation. Optional attributes: `#[account(zero_copy)]` for zero-copy deserialization of large accounts.

Developer Toolsaccount-deserializer

Account Deserializer

Tool or library that converts raw on-chain account bytes into structured data using program-specific schemas. Anchor provides automatic deserialization via its IDL. For non-Anchor programs, developers use Borsh, custom byte parsing, or tools like Codama-generated clients to interpret account data.

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.

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.

Token Ecosystemassociated-token-account

Associated Token Account (ATA)

A deterministically derived token account for a given wallet and mint, using the PDA seeds [wallet, token_program, mint]. ATAs provide a canonical address so anyone can send tokens to a wallet without the recipient creating an account first. The ATA program creates the account on first use, funded by the sender.

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.

Developer Tools

Anchor Framework

The most popular framework for building Solana programs in Rust. Anchor provides macros (#[program], #[account], #[derive(Accounts)]) that auto-generate boilerplate for account validation, serialization, discriminators, and error handling. It includes a CLI (anchor init/build/test/deploy), IDL generation, and TypeScript client generation. Reduces program code by ~80% compared to native development.

Developer Tools

#[account] Macro (Anchor)

The Anchor macro applied to structs to define on-chain account data layouts. `#[account]` auto-derives Borsh serialization, adds an 8-byte discriminator prefix (SHA-256 of 'account:<Name>'), and implements space calculation. Optional attributes: `#[account(zero_copy)]` for zero-copy deserialization of large accounts.

Developer Tools

#[derive(Accounts)] (Anchor)

The Anchor macro that defines the accounts struct for an instruction. Each field specifies an account with validation constraints. Account types include: `Account<'info, T>` (deserialized), `Signer<'info>` (must sign), `Program<'info, T>` (program reference), `SystemAccount<'info>`, and `UncheckedAccount<'info>` (no validation, use carefully).

Developer Tools

Anchor Constraints

Declarative validation rules on Anchor account fields. Key constraints: `#[account(mut)]` (writable), `#[account(init, payer=x, space=n)]` (create), `#[account(seeds=[...], bump)]` (PDA validation), `#[account(has_one=field)]` (field equality), `#[account(constraint = expr)]` (custom boolean), `#[account(close=target)]` (close and reclaim rent).