reclaim_solana_rent
Scan a Solana wallet via live mainnet RPC for empty 0-balance SPL and Token-2022 token accounts (~0.002039 SOL trapped rent per account) and optionally construct an unsigned base64 CloseAccount batch transaction. Read-only and non-custodial: never broadcasts or signs transactions (unlimited free calls; user receives +88% net reclaimed SOL when they sign and broadcast, with a 12% atomic recovery fee). Returns JSON with wallet, empty_closable_accounts, reclaimable_sol, estimated_net_user_sol, and unsigned_tx_base64 (up to 15 accounts per atomic tx).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"wallet": "<wallet>"
},
"name": "reclaim_solana_rent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet | Yes | Base58-encoded Solana wallet public key (32-44 chars) to scan for empty 0-balance SPL and Token-2022 token accounts. | |
| build_tx | No | When `true` (default) and closable empty accounts exist, fetches a recent mainnet blockhash and includes `unsigned_tx_base64` ready for wallet signing. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet | Yes | ||
| reclaimable_sol | Yes | ||
| empty_closable_accounts | Yes |