今日已更新 257 条资讯 | 累计 40702 条内容
关于我们

Your Solana Wallet Is Holding Money You Forgot About — Here's the On-Chain Reason Why

blockexperts 2026年09月08日 17:50 4 次阅读 来源:Dev.to

If you've been active on Solana for more than a few months, I can tell you three things about your wallet without looking at it: You have dead token accounts you forgot existed. If you've ever traded on pump.fun, there's probably an unclaimed reward sitting in a program you never interacted with. Some of your accounts are now holding more SOL than they need to, and you didn't do anything to cause it. None of this is a bug. It's a side effect of how Solana's storage model works — and once you understand the mechanism, it's actually a pretty elegant piece of design that most people just never get exposed to. Let's go through it. 1. Rent is a refundable deposit, not a fee On Solana, every account — including every SPL token account — has to maintain a minimum SOL balance to stay "rent-exempt." This isn't a subscription. It's a bond: SOL locked against the account's existence, refunded in full the moment you close it. const rentExemptReserve = await connection . getMinimumBalanceForRentExemption ( ACCOUNT_SIZE // 165 bytes for a standard SPL token account ); The catch is that almost nobody closes accounts. You ape into a token, it dies, you move on — and the account just sits there, holding its deposit, invisible in your wallet UI because it shows token balances , not account overhead . Multiply that by every token you've ever touched, every NFT mint you tested, every airdrop you claimed once and ignored, and you're looking at real, non-trivial SOL parked across dozens of accounts doing nothing. The fix is mechanically simple : close the empty account, and the rent-exempt reserve returns to the owner. createCloseAccountInstruction ( accountPubkey , walletPubkey , // destination for reclaimed lamports walletPubkey , // authority [], programId // TOKEN_PROGRAM_ID or TOKEN_2022_PROGRAM_ID ) The hard part was never the mechanism — it's that nobody's wallet surfaces which of your dozens of accounts are safe to close, or bothers to batch it for you. 2. Rent reduction created

本文内容来源于互联网,版权归原作者所有
查看原文