Skip to main content

  1. Closing a light-token account transfers remaining lamports to a destination account and the rent sponsor can reclaim sponsored rent.
  2. Light token accounts can be closed
    • by the account owner at any time.
    • by the when the account becomes . The account is - it can be reinstated with the same state (decompressed).

Get Started

  1. The example creates a light-token account and mint.
  2. Build the instruction with CloseCTokenAccount:
1

Prerequisites

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

Close light-token Account

Next Steps

Go back to the overview for the light-token standard.