Skip to main content
LumenWipe is an open-source, non-custodial tool that cleanly closes a Stellar account and returns its locked XLM to the user. It unwinds everything that holds an account open (trustlines, offers, data entries, extra signers, claimable balances, classic liquidity pool shares, and DeFi positions), converts whatever is left to XLM, and merges the account into a destination wallet or exchange. Its differentiator is full Soroban and DeFi support: the piece existing tools lack.

The problem

Stellar has more than ten million accounts on mainnet, and a large share are stale, abandoned, or effectively locked. Every account holds XLM in reserve (a 1 XLM minimum balance, which is two base reserves, plus 0.5 XLM per trustline, offer, data entry, or signer), and that reserve is only recoverable by closing the account. Closing one cleanly is a manual, multi-step process most users cannot perform: a single leftover entry makes the final ACCOUNT_MERGE fail. Exchanges make it worse, because none support ACCOUNT_MERGE, so the base reserve stays frozen for anyone trying to cash out to a CEX. DeFi users have no tool at all today, since the existing demolisher has no Soroban support.

What we build

A guided web app that runs the whole wind-down in one flow and signs every transaction in the browser. The headline difference from the reference tool is closing positions across the main Soroban DeFi protocols (Blend, Aquarius, Soroswap, Phoenix, and FxDAO on testnet only) on top of all classic operations, plus a CEX-compatible merge, a read-only allowance inspector for revoking risky token approvals, and a UX designed for irreversible actions. Two capabilities widen who can use it: sponsored fees close accounts that hold only their locked reserves and cannot pay their own transaction fees, and a REST API plus a TypeScript SDK let wallets and platforms run the same wind-down programmatically, from a single account to a fleet.

What runs today

The full wind-down runs. The API reads account state from the sources described in the architecture and builds every unsigned transaction; the browser verifies and signs it. That covers the classic path (signer normalization, data entry removal, offer cancellation, claimable balances, classic liquidity pool withdrawal, asset conversion, trustline removal, and AccountMerge), exits from Blend, Aquarius, Soroswap, Phoenix, and FxDAO (testnet only), Soroban token conversion, and the allowance inspector. Each protocol exit is exercised against testnet by integration tests. The mediator flow for exchange destinations and sponsored fees are available on testnet; mainnet follows the monitoring plan. The public REST API, the @lumenwipe/sdk client, the standalone @lumenwipe/verify package and a testnet playground are live for integrators.

How it works

Analyze the account, generate a deterministic ordered plan, execute it step by step with explicit confirmation, then merge. A full close is several sequential transactions, so the tool shows the complete plan up front and checks each transaction in the browser before asking for a signature, simulating Soroban steps as they are built. A resumable session exists only after the user confirms the plan; see how closing works.

Technical pillars

  • Non-custodial by construction. A user’s private keys never leave the browser. The backend is read-only apart from two signing keys, the shared exchange mediator, which can only co-sign a forwarding payment the user already authorized in an atomic transaction, and the fee-bump sponsor, which only pays network fees; see the threat model; no operator (including us) can move a user’s account funds or close their account.
  • No bespoke indexer. Stellar RPC reads live state, simulates, and submits; existing indexers handle enumeration and classic path finding, and OctoPos provides DeFi position detection (sources are listed in the architecture).
  • Per-protocol exit adapters and a versioned contract registry. Detect positions with the DeFi Position API, build the exit with each protocol’s SDK, public API, or contract, and simulate before signing. A protocol upgrade is a registry update, not a rewrite.
  • CEX compatibility through a shared mediator account and an atomic forwarding payment, since exchanges do not support ACCOUNT_MERGE. The user recovers essentially all of their XLM.
  • Safety for irreversible operations. Per-step confirmation, simulation of Soroban steps before signing, resumable sessions reconciled against on-chain state, and security reviews throughout development.

What it covers

  • The full account wind-down: sponsorship and multisig checks, signer and threshold normalization, trustline, data entry, offer, classic liquidity pool, and DeFi position removal, claimable balances, asset conversion, and merge with the mediator flow.
  • Consumes an existing DeFi Position API, OctoPos, behind a pluggable adapter with an explicit degraded mode.
  • Open source under Apache 2.0, with a REST API and TypeScript SDK so wallets and platforms can integrate the same wind-down.

Roadmap

Read more