Skip to content
How it works

A deterministic plan for an irreversible action.

Closing an account takes one or more transactions in the right order. LumenWipe shows the whole plan up front, then executes it one transaction at a time, each confirmed before the next, re-reading live state and checking each transaction in your browser before you sign, so nothing is ever signed on stale data.

The execution loop

Every step runs the same safe loop.

No step trusts a cached value. Each one reconciles against the live ledger (a Soroban step is also simulated when it is built), is checked by your browser, and waits for your explicit approval before a single byte is signed.

Re-read live state

getLedgerEntries

Check in browser

verify.ts

Confirm

you approve

Sign in browser

your wallet

Submit XDR

to Stellar RPC

Poll & advance

next step

repeats for every step in the plan

The plan

Eight ordered steps, every reserve accounted for.

  1. 01

    Analyze the account

    Enumerate every subentry (trustlines, offers, data entries, signers) and detect DeFi positions through OctoPos. The result is a single, ordered execution plan.

    opHorizon + Stellar RPC
  2. 02

    Normalize signers

    Remove extra signers and reset thresholds so a single key can authorize every remaining step without surprises mid-flow.

    opSetOptions
  3. 03

    Remove data entries

    Clear every ManageData entry in batches, releasing 0.5 XLM of reserve each.

    opManageData (value = null)
  4. 04

    Cancel DEX offers

    Close all open order-book offers, freeing the reserve each one holds.

    opManageSellOffer / ManageBuyOffer · amount = 0
  5. 05

    Exit DeFi positions

    Exit every supported Soroban protocol position, repaying loans and unstaking first where needed, via each protocol's own adapter. Classic AMM pool shares are withdrawn in full.

    opInvokeHostFunction · Blend · Soroswap · Aquarius · Phoenix
  6. 06

    Convert assets to XLM

    Swap every remaining token to XLM along the best available route across Soroban and classic venues.

    opSoroswap API · SDEX path payments
  7. 07

    Remove trustlines

    Once a balance is zero, remove its trustline and release the 0.5 XLM reserve.

    opChangeTrust · limit = 0
  8. 08

    Merge the account

    Execute the final merge, directly to a wallet or through a relay account for an exchange destination. The base reserve comes back too.

    opAccountMerge
Exchange destinations

The CEX relay flow.

Exchanges don't support ACCOUNT_MERGE. LumenWipe bridges the gap with one shared relay account: the merge sends your balance into it and, in the same transaction, it pays that balance on to your deposit address with the memo. Its key stays on the LumenWipe API, which co-signs only that payment, and your browser checks that the payment goes to the address you typed before you sign.

Source account
the account you're closing
AccountMerge
Relay account
shared · co-signed by the API
Payment + memo
Exchange deposit
validated address & memo

The relay account forwards your whole balance less a two-operation network fee, so none of your reserve stays behind, and the review names the exchange and the relay route before you sign. Known exchanges are validated against a registry that enforces the correct memo type.

Resumable by design

Close the tab. Pick up where you left off.

The close moves through these phases in your browser. Once you confirm the plan, the browser keeps a small record of the close, never your keys. On return, LumenWipe re-reads the account and builds a fresh plan for what is left, which you review and sign again, so confirmed work is not repeated.

IdleAnalyzingPreflightCompleteStepExecutingStepConfirmedComplete
Architecture

Three layers, one trust boundary.

No bespoke indexer. Every read source sits behind an adapter, so any compatible provider can be swapped in without touching the rest of the system.

Browser
UI · wallet · transaction check · signing · session
your key stays here
LumenWipe API
reads · DeFi adapters · routing · builds unsigned transactions
never holds your key
Stellar network
Stellar RPC · Horizon · Soroswap
read · submit
FAQ

Questions, answered.

Yes. Your secret key never reaches a LumenWipe server, and LumenWipe does not store or log it: you sign in your browser, through your wallet or a key held in memory for this session only. The LumenWipe API reads your account and builds each unsigned transaction. Before you sign, your browser decodes it and checks its operations and destination against what you entered; if they do not match, it stops before asking you to sign. Two keys sign on the server, and neither can sign for your account. Relay account key: In an exchange close, it co-signs only a two-operation transaction: your account's merge into the relay account and an XLM payment from it in the same transaction. Before you sign, your browser checks that this payment goes to the exchange address you typed. Testnet only today. Fee-sponsor key: When a fee is sponsored, it signs only the fee-bump envelope that pays the network fee for a transaction you already signed, and cannot change that transaction. Testnet only today. The check is open source: verify.ts (opens in a new tab).

No. The final merge permanently removes the account from the Stellar ledger. Because the action is irreversible, LumenWipe shows the complete plan up front, your browser checks every transaction before you sign it, and each signature waits for your explicit confirmation. Soroban steps are also simulated when they are built.

Everything recoverable. Stellar requires a 1 XLM minimum balance (two base reserves) plus 0.5 XLM for each subentry: every trustline, open offer, data entry, and extra signer. LumenWipe unwinds all of them to release those reserves, converts leftover tokens to XLM, and sweeps the full balance to your destination.

On testnet today. Exchanges don't accept an account merge as a deposit, so LumenWipe routes the final merge through a relay account: a shared account that receives the merge and, in the same transaction, pays the balance out to your deposit address with the correct memo. Known exchanges are validated against a registry that enforces the required memo type, so deposits don't go missing. On mainnet, the plan blocks an exchange close until the relay account is deployed there, so close to a wallet you control instead.

Yes. LumenWipe detects positions through OctoPos and exits them in Blend, Soroswap, Aquarius and Phoenix on mainnet; FxDAO exits run on testnet only. Classic order-book offers are cancelled as part of every close, and classic AMM pool shares are withdrawn in full before it.

Any wallet that Stellar Wallets Kit connects: Varial (formerly Freighter), xBull, Albedo, LOBSTR, Hana, WalletConnect and more. Power users can also use an advanced secret-key mode where the key is held in memory only for the duration of the close, never persisted and never sent to a server, and cleared when you finish, abort, navigate away, or click "Forget key".

Anything already confirmed on the network stays done. Once you confirm the plan, this browser keeps a small record of the close: the account, the destination, the memo and the hash of any transaction still waiting, never your keys. When you come back in the same browser, the home page offers to resume: LumenWipe re-reads the account and builds a fresh plan for what is left, which you review and sign again, so confirmed work is not repeated. If a transaction was still waiting for the network, you check its outcome first. Your per-asset choices are kept only in this tab, so a reload shows them again for you to check; in another tab, or once this one is closed, you make them again.

Both. Run the entire flow on testnet with no real funds at risk to see exactly what will happen, then switch to mainnet for the real close. Exchange closes, sponsored fees and FxDAO exits run on testnet only today. Closing an account on mainnet is irreversible and entirely at your own risk: review each step and the destination address before you sign anything.

Ready when you are.

Open the app