Advanced Token Instructions

Beyond the common create, mint, and transfer operations, the Token Program is also called from on-chain 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 on-chain 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.

Is this page helpful?

Table of Contents

Edit Page
©️ 2026 Solana 基金会版权所有