Staking leftovers
Stake accounts someone unstaked and never emptied, extra SOL in active stake, merges, and idle validator vote accounts, and how Burn & Claim returns them with no fee on the person's own SOL.
Staking from a wallet app leaves accounts behind. Someone unstakes, the stake cools down, and the stake account sits there holding their SOL until it is withdrawn. Active stake accounts opened before Solana lowered rent hold more than they need now. A validator that stopped voting leaves its vote account holding rent and earnings. Burn & Claim finds every one the wallet is the withdraw authority of and gives the SOL back to that wallet, and only to it.
What the scan finds
The scan (GET /v1/wallets/{address}/assets) lists them with family: "staking" and a staking object with the state it read from chain:
| Kind | State | What it offers |
|---|---|---|
stake_account | inactive: unstaked and fully cooled down | close: one withdraw of its whole balance. Preselected (tier 1) |
stake_account | initialized: never delegated | close, the same way |
stake_account | active or activating | withdraw_excess: what it holds above its stake and today's minimum, while it stays staked (tier 0). On the same validator as another of the wallet's fully active accounts, also close, which merges it into that one (staking.mergeInto) and returns what the merge frees (tier 2) |
stake_account | cooling_down | Nothing yet: blockedReason cooling_down, with the stake still cooling (staking.coolingLamports) |
vote_account | idle: no credits this epoch or last | close: one withdraw of its whole balance (tier 2) |
vote_account | voting | Nothing: blockedReason in_use |
A stake account under a lockup is never offered (blockedReason locked, with staking.lockup saying until when): only its custodian could release it sooner. For a few minutes at the start of each epoch, while Solana pays staking rewards, every stake instruction fails; stake accounts then show blockedReason epoch_rewards, and a scan shortly after offers them again. Burn & Claim never unstakes anything for anyone: an account still staked stays staked.
Accounts only a staker, a custodian, a multisig or a program can withdraw from are never found, because the scan looks for the wallet as withdraw authority.
The fee rests on rent only
What a stake or vote account returns is two things, and the scan and the quote keep them apart:
- Rent, the account's deposit: for a stake account, the rent-exempt minimum when it was delegated (Solana lowered rent in steps, and Burn & Claim reads which step was in force at its delegation epoch), or today's minimum when it never was; for a vote account, today's minimum. This is
reclaimLamportsandstaking.rentLamports, and the only partstake_account_closure,vote_account_closureand, for an active account's extra SOL,excess_lamports_reclaimare charged on, at the ratesGET /v1/feeslists. - The person's own SOL: the principal they unstaked and its rewards, a validator's earnings, tips or SOL sent to an active stake account. This is
strayLamportson the action and the quote line, andsafeSetStrayLamportsin the totals. It comes back in full, is never charged, and is not innetLamports: the wallet receivesnetLamportsplusstrayLamports. It counts in what the person gets, never on leaderboards or share cards: a share card's amount is the SOL reclaimed, and says so ("SOL reclaimed"). Burn & Claim's app shows the two apart under what landed: "0.0040 reclaimed · 0.00044 your own SOL".
Someone who unstaked 2 SOL from an account delegated before the rent cut gets their 2 SOL back with no fee on it, and the fee comes out of the account's 0.00228288 SOL of rent.
What can't be undone
Every action has a tier. Closing an unstaked stake account (tier 1) and taking an active one's extra SOL (tier 0) destroy nothing anyone uses, so they are in the safe set: the scan's totals.safeSetLamports counts them, with the person's own SOL in it (safeSetOwnLamports), and the app preselects them. Merging stake accounts and closing a vote account (tier 2, irreversible) can't be undone and might matter: someone may keep separate stake accounts on purpose, and stake still delegated to a vote account (staking.delegations) earns nothing once it closes. They are never preselected, and preparing a round takes them only when their selection says the person chose them knowing that (acknowledged: true); without it, the item is skipped as needs_acknowledgement. A quote prices them either way.
What the transaction does
Each item is one instruction to Solana's own programs, paying the wallet:
- the stake program's
Withdrawof the whole balance, which closes the account, or of the extra SOL, which keeps it staked; - for a merge, the stake program's
Mergeinto the destination, then aWithdrawof what that freed, in the same transaction; - the vote program's
Withdrawof the whole balance, which closes the vote account.
Every amount is fixed when the round is built, read from chain: the program moves exactly that to the wallet, or the transaction fails and moves nothing. Before co-signing, Burn & Claim checks that each withdraw pays the wallet exactly what its quote line says, signed by the wallet, and simulates the transaction, so one the stake or vote program would refuse is never sent. Many fit in one transaction, so a wallet with a dozen unstaked accounts clears them in one approval.
Agents use the same flow through MCP: scan_wallet lists staking leftovers with their tier, quote_reclaim prices them, and an organization key's prepare_reclaim builds them, tier 2 only with acknowledged.