Skip to main content

  1. Light token accounts are Solana accounts that hold token balances of light, SPL, or Token 2022 mints.
  2. Light token accounts implement a default rent config:
    1. At account creation, you pay ~17,208 lamports
      and (the rent-exemption is sponsored by the protocol)
    2. Transfers keep the account funded via top-ups. The transaction payer tops up 776 lamports when the account’s rent is below 3h.
  1. The rent-exemption for light account creation is sponsored by the Light Token Program.
  2. Transaction payer’s pay rent
    to keep accounts “active”.
  3. “Inactive” accounts (rent below one epoch) get automatically compressed.
  4. The account’s state is cryptographically preserved and will be loaded into hot account state in-flight, when the account is used again.
The hot state fee is paid for by the transaction payer when writing to the respective account.

Get Started

  1. The example creates a test mint for light-tokens. You can use existing light, SPL or Token 2022 mints as well.
  2. Build the instruction with CreateCTokenAccount. It automatically includes the default rent config.
  1. Send transaction & verify light-token account creation with get_account.
1

Prerequisites

Cargo.toml
Test with Lite-SVM (…)
2

Create Token Account

Next Steps

Learn how to mint tokens to light-token accounts