Skip to main content

Light-PDA

Light-PDAs are Solana PDAs with sponsored rent-exemption and can be implemented with minimal code changes to your existing Solana program. Your program logic stays mostly untouched, which keeps audit overhead minimal.
Regular PDALight-PDA
100-byte account~1,600,000 lamports~11,500 lamports
Use Light-PDA’s like any Solana PDA, e.g. for DeFi pools, vaults, pool accounts, or other shared state.
  1. A rent sponsor PDA by Light Protocol 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.

Light-PDA integration guide


Advanced: Compressed PDA

Compressed PDAs are compressed accounts with an address. Programs invoke the Light System program to create and update compressed accounts, instead of the System program. Fully compatible with existing Solana programs, but requires custom logic.
Regular PDACompressed PDA
100-byte account~1,600,000 lamports15,000 lamports
Use for accounts where each user or entity gets their own PDA and state is infrequently accessed:
  • Per-user state (profiles, preferences, credentials)
  • DePIN node accounts and stake accounts
  • Nullifiers to prevent an on-chain instruction from being executed twice (little implementation overhead and useful e.g. for payments or ZK programs)
  • App state that is written to and read from infrequently

Compressed PDA program template