官方的 MASTR 标志 MASTR 支持这项工作
目录
← 知识库首页

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

研究文章和参考条目以英语发布。导航提供七种语言。

本文目录
  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

相关阅读

MASTR

支持独立研究

这里的调查、原始证据和指南均可免费阅读。自愿捐赠帮助支付研究成本,让 MASTR 能够继续提供工具。

打开钱包