1
Analyze
You enter the account to close, a destination, and the network. LumenWipe reads the live
on-chain state: balances, trustlines, offers, data entries, signers, sponsorships, claimable
balances, and DeFi positions. For each asset you choose what happens to it: convert to XLM,
return to the issuer, or transfer to an account you name.
2
Review
The review page shows the complete ordered plan, the estimated fee, and the estimated XLM that
reaches the destination. No transaction exists yet, and nothing is saved for resuming until you
confirm. See Interruptions are safe.
3
Sign
Confirming the review builds the first transaction. Before your signer ever sees it, the browser
decodes it and checks that it does exactly what you asked, against your own inputs and not the
server’s response. A mismatch aborts before signing. See signing
options.
4
Execute
The signed transaction is submitted and confirmed. If more work remains, the next round starts
from fresh on-chain state, until the account is merged.
The plan
For a given account state the plan is always the same. It runs in this order, which satisfies the ledger’s constraints, and the review page’s “In order” list shows the steps in exactly this order:- Normalize signers first, as a transaction of its own, when no single key of the account can sign the close, so the master key alone signs every step after it
- Exit DeFi positions, each as its own transaction
- Move Soroban tokens, each as its own transaction: every transfer first, then every conversion to XLM
- Withdraw every share of each classic liquidity pool and remove its share trustline, in a transaction before the claims
- Claim claimable balances, adding a trustline first where a claim needs one, in a transaction before the close
- Normalize signers, when extra signers exist and this did not run first
- Revoke the sponsorships this account provides, when the owners can absorb the reserve
- Remove data entries
- Cancel offers
- Handle each asset
- Remove trustlines
- Merge the account, through the mediator transaction last for an exchange destination
One transaction, or several
Most accounts close in a single transaction, signed once. More are needed in a few cases:- An exchange destination adds one transaction, the mediator transfer. See exchange closes.
- An account no single key can sign removes its other signers first, in a transaction of its own, so the rest of the close needs only the master key.
- Liquidity pool shares are withdrawn in a transaction of their own, because what a pool returns is only known once it lands.
- Claimable balances are claimed first and the account is closed second, so the proceeds are not lost.
- A Soroban step, such as a DeFi exit or a Soroswap aggregator swap, is its own transaction, because it cannot be mixed with other operations.
- More than 100 operations are split into the fewest transactions the protocol limit allows.
Interruptions are safe
A close you can resume exists only after you confirm on the review page. Before that, your choices, destination and memo are kept only in this tab, so a reload of the analyze or review page shows them again for you to check, and the plan is built again from your account. A confirmation that gives value up, such as leaving a DeFi position behind, is always asked again. Closing the tab leaves nothing to resume, and nothing has happened. After you confirm, your browser keeps a small record of the close: the account, the destination, the memo, how many steps confirmed with their transaction hashes, and the hash of any transaction still waiting for the network. It never keeps your keys, a signed transaction or the plan. The server keeps no progress between rounds. Each round re-reads the account and works out what remains. If your browser closes or a submission fails after you confirmed, resume from the start page: the account is read again and a fresh plan is built for what is left, which you review and sign again. Work that already confirmed is not repeated, because it is no longer on the account. A transaction that may still be waiting is checked by its hash first.Prefer to drive this from your own code? The same flow is available through the REST API and the
@lumenwipe/sdk package.