SPL
Documentation

SPL Token Standard

Understanding the Solana Program Library (SPL) token standard and its features.

SPL Token Overview

SPL Token is the standard for fungible and non-fungible tokens on Solana. It provides a consistent interface for token operations across the ecosystem.

Program ID

System
TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA

Token-2022

Extended

Enhanced version with additional features like transfer fees and confidential transfers.

Token Account Structure

Mint Account

Stores global information about the token (supply, decimals, authorities).

{
  "supply": "1000000000000",
  "decimals": 6,
  "mintAuthority": "...",
  "freezeAuthority": "..."
}

Token Account

Individual account that holds tokens for a specific owner.

{
  "mint": "...",
  "owner": "...",
  "amount": "1000000",
  "state": "initialized"
}
Key Features

Core Operations

  • Create mint account
  • Create token accounts
  • Mint tokens
  • Transfer tokens
  • Burn tokens

Authority Management

  • Set mint authority
  • Set freeze authority
  • Revoke authorities
  • Freeze/unfreeze accounts