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 Light Token Program pays the rent-exemption cost for the account.
  2. Transaction fee payers bump a virtual rent balance when writing to the account, which keeps the account “hot”.
  3. “Cold” accounts virtual rent balance below threshold (eg 24h without write bump) get auto-compressed.
  4. The cold account’s state is cryptographically preserved on the Solana ledger. Users can load a cold account into hot state in-flight when using the account again.

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 CreateTokenAccount. 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