Skip to content
Beyond the common create, mint, and transfer operations, the Token Program is also called from onchain programs via CPI and includes instructions for recovering lamports:
WithdrawExcessLamports and UnwrapLamports are available through the @solana-program/token client. Calling the Token Program via CPI applies to onchain programs.

​Lamport recovery

WithdrawExcessLamports recovers SOL above the rent-exempt minimum from token accounts, mints, and multisig accounts. UnwrapLamports converts wrapped SOL in a native token account back into lamports.