Burn & Claim’s new API is in preview: these pages describe it as it will be at launch.
Burn & Claim Docs
Concepts

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.

kindWhat it isWhat closing it does
candy_machineA 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_guardA 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_collectionAn 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_treeAn 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.
mintA 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_delegateA 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_escrowThe 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.
inscriptionA 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 says irreversible: true. Preparing a round with it takes acknowledged: true on its selection, which a client sends only once the person saw "Can't be undone" for that item; without it, the round skips it as needs_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.

On this page