admin 发表于 2025-6-12 15:52:02

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

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

admin 发表于 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; dosolana close-account $wallet --recipient DESTINATION_WALLETdone

[*]JavaScript/TypeScript Scriptjavascript



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

页: [1]
查看完整版本: What is the easiest way to reclaim rent from 100 wallets?