Creator and DeFi leftovers
The accounts beyond token accounts that a wallet can close for their rent, how safe each is to close, and what is charged.
Making a drop, a collection or a token, or bidding on an old marketplace, leaves accounts behind that hold SOL as rent. Only the wallet that controls them can close them, and Burn & Claim closes them for that wallet alone: every refund goes to the wallet, and nothing else is paid but Burn & Claim's fee.
What the scan lists
GET /v1/wallets/{address}/assets lists these beside token accounts and NFTs. Each one only offers close.
kind | What it is | What closing it does |
|---|---|---|
candy_machine | A Candy Machine (v3 or Core) whose authority is the wallet. The Candy Guard that wraps it, and a v3 machine's leftover collection delegate, close with it in one item. | Minting from it ends for good. A sold-out machine loses nothing. |
candy_guard | A Candy Guard whose authority is the wallet and that no machine of the wallet's names. | A machine it still wraps couldn't mint again; that one is marked inUse: ["wraps_candy_machine"]. |
core_collection | An empty Metaplex Core collection whose update authority is the wallet. | Its address can't be made again. Core returns today's rent for its size, less a one-byte account it keeps. |
merkle_tree | An empty compressed-NFT tree: a Bubblegum V2 tree its creator or delegate controls (with its tree config), or a plain tree whose authority is the wallet. Bubblegum V1 trees can't be closed by anyone and aren't listed. | Nothing more can be minted into it. A V2 tree's uncollected protocol fees go to Metaplex's fee recipient, as the Bubblegum program does by itself. |
mint | A Token-2022 mint with no supply left, whose close authority is the wallet. | The token's address stops existing. A mint with no supply may be a launch still to come, so it's never picked for the person. |
metadata_delegate | A Token Metadata delegate record the wallet approved as an NFT's update authority. | The delegate (leftover.delegate, in the role leftover.role) loses that authority. |
bid_escrow | The wallet's buyer escrow at a Metaplex Auction House: the SOL of old bids. | Bids still open on that marketplace can't be filled. The bid SOL comes back in full. |
inscription | A Metaplex inscription the wallet may close, with its associated inscriptions. | What it holds on chain is erased (destroysAssets). |
A Token-2022 account that holds only confidential withheld transfer fees, on a mint that lets anyone harvest them, closes as an empty account: the close harvests them to the mint first. One with a confidential balance can't close until the wallet that set it up empties it; only its extra SOL comes back.
How safe each is: tier and inUse
Every leftover carries a tier:
- 1: closes something unused, such as a sold-out Candy Machine or an old escrow. The app selects it for the person and it counts in the scan's
safeSetLamports, the safe set. - 2: can't be undone and might matter: an empty collection, a tree, a mint, a delegate record, an inscription, or a Candy Machine with items left. It's never selected for the person, never in
safeSetLamports, and its option saysirreversible: true. Preparing a round with it takesacknowledged: trueon its selection, which a client sends only once the person saw "Can't be undone" for that item; without it, the round skips it asneeds_acknowledgement. A quote prices it either way.
inUse says why an item is listed unselected though it can close: items_left, recent_activity (touched in the last 30 days), wraps_candy_machine, candy_machine_target (a Core Candy Machine of the wallet's still mints into this collection) or unchecked (past what one scan checks). Show the reason and let the person pick it.
A wallet that is a multisig or another program's address can't sign here: its leftovers come back with blockedReason: "multisig" and no actions, for its members to close in their multisig app.
What is charged
Each close is charged its own code, at the rate GET /v1/fees lists: creator_account_closure, mint_closure or defi_account_closure. The fee rests on the rent part only. SOL that is the person's own, an escrow's bid SOL, comes back in full on its own line, the option's and the quote line's strayLamports, as a stake account's principal does: never charged, not in netLamports, and never counted on leaderboards or share cards, whose amount is the SOL reclaimed. As with every account, SOL sent to one by mistake is returned uncharged too.
Before the co-signature
Quote and build read every account again: one that is gone is not_found, and one the wallet no longer controls is changed_since_scan. Before co-signing, submit checks that each close pays only the wallet, then simulates the transaction as signed and refuses it (unsafe_transaction) if SOL from any account it closes would reach anyone but the wallet, the quoted charges' recipients or, for a V2 tree's protocol fees, Bubblegum's own recipient. Staff can pause each section (creator_leftovers, defi_leftovers) without a deploy; a paused one's items are skipped as service_paused.
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.
DeFi leftovers
The empty trading accounts and liquidity positions apps leave in a wallet, and how Burn & Claim closes them for their rent without touching anything live.