找回密码
 立即注册
搜索
热搜: GTokenTool
查看: 155|回复: 1

What is the easiest way to reclaim rent from 100 wallets?

[复制链接]

212

主题

211

回帖

1228

积分

管理员

积分
1228
发表于 2025-6-12 15:52:02 | 显示全部楼层 |阅读模式

212

主题

211

回帖

1228

积分

管理员

积分
1228
 楼主| 发表于 2025-6-12 15:54:55 | 显示全部楼层
The easiest way to reclaim rent from 100 Solana wallets depends on your technical comfort level. Here are the most efficient methods:
For Non-Technical Users
  • Phantom Wallet's Bulk Close Feature (if available)

    • Some wallet interfaces offer batch operations

  • Solflare Wallet
    • Has a built-in feature to close empty accounts and reclaim rent


For Technical Users
  • Command Line (solana-cli)
    text



    for wallet in wallet_list.txt; do  solana close-account $wallet --recipient DESTINATION_WALLETdone

  • JavaScript/TypeScript Script
    javascript



    const { Connection, Keypair, PublicKey } = require('@solana/web3.js');async function closeAccounts(walletList, destination) {  const connection = new Connection('https://api.mainnet-beta.solana.com');  // Add logic to close each account}

  • Solana Program Library (SPL) Tools
    • Use the spl-token close-all command if dealing with token accounts


Important Considerations
  • You'll need the private key for each wallet
  • Each closure requires a small amount of SOL for transaction fees
  • Current rent exemption is 0.00203928 SOL per account


您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Telegram|手机版|小黑屋|GTokenTool

GMT+8, 2025-9-11 04:12 , Processed in 0.024762 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表