惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

罗磊的独立博客
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Visual Studio Blog
MyScale Blog
MyScale Blog
M
MIT News - Artificial intelligence
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
T
The Blog of Author Tim Ferriss
Martin Fowler
Martin Fowler
博客园 - 【当耐特】
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
宝玉的分享
宝玉的分享
Engineering at Meta
Engineering at Meta
WordPress大学
WordPress大学
Google DeepMind News
Google DeepMind News
C
Check Point Blog
Last Week in AI
Last Week in AI
F
Fortinet All Blogs
博客园 - 聂微东
Blog — PlanetScale
Blog — PlanetScale
H
Help Net Security
GbyAI
GbyAI
云风的 BLOG
云风的 BLOG

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
70,000 Empty Accounts: The Owner Doesn't Know He Left 120...
Сhekers · 2026-04-25 · via DEV Community

Сhekers

If you are active in the Solana ecosystem, there is a very high chance you have money sitting completely frozen on the blockchain.

Recently, I was analyzing some on-chain data and stumbled upon a single address holding 70,000 empty Token Accounts. That is roughly 120 SOL (thousands of dollars) just lying dead for months. The owner probably had no idea.

Free Solana rent scanner - scan up to 10 wallets without connecting. See recoverable SOL instantly.

Why does this happen? It all comes down to how Solana handles storage space.

What is locked rent in Solana?
Solana requires a ~0.002 SOL deposit for every token account you open. When you interact with a new token, swap, or receive an airdrop, an Associated Token Account (ATA) is created, and your SOL is locked to pay for its "rent" on the blockchain.

When these accounts become empty after you sell or transfer the tokens, the deposit stays locked. It doesn't automatically return to you. To claim your sol, you must manually close these empty accounts. Active wallets can easily have 0.5 to 5+ SOL locked this way over time.

The Token-2022 Trap
Closing standard SPL tokens is straightforward. But with the introduction of the Token-2022 standard, things got more complicated. You can't just forcefully close them if there are withheld transfer fees or leftover balances.

If you are building a tool to reclaim sol programmatically, you must follow a strict sequence. Here is the correct execution order in Rust to avoid transaction errors:

// 1. First, harvest withheld fees (Crucial for Token-2022)
tf_instruction::harvest_withheld_tokens_to_mint(
    &spl_token_2022::ID,
    mint_pubkey,
    &[token_account_pubkey],
)?;

// 2. Burn remaining junk tokens (if there is a balance)
token2022_instruction::burn(
    &spl_token_2022::ID,
    token_account,
    mint,
    owner,
    &[],
    amount,
)?;

// 3. Close the account and refund your sol
token2022_instruction::close_account(
    &spl_token_2022::ID,
    token_account,
    owner,
    owner,
    &[],
)?;

Enter fullscreen mode Exit fullscreen mode

Key differences from the old SPL standard:

  • You must invoke spl_token_2022::ID instead of spl_token::id().
  • The harvest_withheld_tokens_to_mint step is mandatory if you want to cleanly claim sol fees that were trapped by token extensions.
  • When reading the account data, you need to use StateWithExtensions::<Account>::unpack instead of standard unpacking.

The Easy Way Out

Building these instructions and batching them for hundreds of accounts is a headache. I kept seeing people lose out on free money, so I built a lightweight utility for the community: SolChekers

I wanted to make it as transparent as possible:

  • Free Scanner: You can go to solchekers.com/scan and just paste up to 10 wallet addresses. No wallet connection required. It will scan the chain and tell you exactly how much locked rent is sitting there, just for your information.
  • Batch Closing: If you decide to clean up, the dApp allows you to batch-burn useless junk and close empty ATAs to claim sol straight back to your main balance in a few clicks.

It's a small tool, but it does one job very well. (We also maintain a comprehensive Solana Wiki on the site if you want to dive deeper into how Token-2022 and ATAs work under the hood).

Go check your address. You might be richer than you think.

What is the most locked rent you've ever recovered from an old wallet? Drop your high score in the comments! )))