Skip to main content

  1. Associated light-token accounts are Solana accounts that hold token balances of light, SPL, or Token 2022 mints.
  2. The address for light-ATAs is deterministically derived with the owner’s address, Light Token Program ID, and mint address.
  3. Associated 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

The createAtaInterface function creates an associated light-token account in a single call.Compare to SPL:
Find the source code here.
1

Create Associated Token Account

Install packages in your working directory:
Install the CLI globally:
In the code examples, use createRpc() without arguments for localnet.

Custom Rent Config

The SDK uses the protocol’s rent sponsor and config PDA by default. To pass a custom config explicitly:

Next Steps

Learn how to mint light-tokens