Skip to main content
@lumenwipe/sdk is a typed fetch client for the LumenWipe API. LumenWipe closes Stellar accounts non-custodially: it unwinds everything holding an account open, converts leftovers to XLM, and merges the account into a destination wallet or exchange. The SDK only talks to the API over HTTP. It builds no transactions and has no @stellar/stellar-sdk dependency. Reading on-chain state and constructing every unsigned transaction happens server-side, and the client relays typed JSON and XDR strings. Signing stays with you, and so does deciding whether a transaction is safe to sign.
The SDK does not verify or sign anything. Read Verification is your responsibility before wiring up signing.

Install

Request and response types come from @lumenwipe/types and are re-exported by the SDK, so no separate install is needed. The SDK uses the global fetch. Pass your own through the fetch option on runtimes that lack one.

Quickstart

Verify each transaction, sign it, and submit it with submit. Repeat while remaining.requiresAnotherCall is true. runClose drives that whole loop for you.

Where to go next

Client

Configuration and every method.

runClose

The driven fetch, verify, sign, submit loop.

Verification

What your code must check before signing.

Headless example

The reference implementation, end to end.