Logo Oficial MASTR MASTR Apoyar el trabajo
Contenido
← Inicio de la wiki

Technical reference

Closing a Solana token account: check where its SOL goes

A cleanup transaction can recover account funding, but its destination is still part of the signed request.

Source-based reference · Updated 12 September 2026

Los artículos de investigación y las referencias se publican en inglés. La navegación está disponible en siete idiomas.

En este artículo
  1. What closing does
  2. The destination matters
  3. Do not batch blindly
  4. Sources

What closing does

Closing a token account transfers its remaining lamports to a specified destination and removes the account. An ordinary token account generally needs a zero token balance before closing. Wrapped SOL accounts have special handling and can be closed to recover the underlying SOL.

The destination matters

A tool may present the operation as reclaiming account rent. That description does not identify who receives the recovered lamports. Review the destination and the owner or close authority authorising the instruction. The recipient should match the user's intended recovery address.

Do not batch blindly

A bulk cleanup transaction may contain several close instructions or additional transfers. Inspect every instruction and account rather than approving the whole request because one row looks correct. Preserve the transaction's decoded instructions if a tool redirects the recovered funds. That establishes the destination the user signed, without assuming that every account-cleanup tool is malicious.

Sources

Lecturas relacionadas

MASTR

Apoya la investigación independiente

Las investigaciones, las pruebas originales y las guías son de acceso libre. Las donaciones voluntarias ayudan a financiar la investigación y a mantener disponibles las herramientas de MASTR.

Abrir billetera