Skip to content
CLI

Unlink from a terminal.

The app's vault, Lean planner and unlink queue in one binary. For a machine that stays on.

Download · v0.1.0

SHA256SUMS
macOS
Apple silicon·87 MB
Download
sha256 081bfe3f…993b32
macOS
Intel·93 MB
Download
sha256 15b7baf5…9fe54b
Windows
x64·145 MB
Download
sha256 e87fd31e…0b1891
Linux
x64·131 MB
Download
sha256 2c8695a7…1f4286
$ curl -fLO https://lean-pool.com/downloads/leanpool-darwin-arm64
$ shasum -a 256 leanpool-darwin-arm64
$ chmod +x leanpool-darwin-arm64 && sudo mv leanpool-darwin-arm64 /usr/local/bin/leanpool
$ leanpool --help
# Intel Mac: leanpool-darwin-x64 · blocked? xattr -d com.apple.quarantine /usr/local/bin/leanpool
your first plan
$ leanpool plan 3.2 --burners 3 --speed balanced
plan 3.2 SOL → 3 burners · window 1d 0h · relayer fee 0.35% + 0.006 SOL
# when burner withdraw receives
1 +3h 33m b2 0.1 SOL 0.09365 SOL
2 +5h 40m b3 1 SOL 0.9905 SOL
3 +8h 04m b1 0.5 SOL 0.49225 SOL
4 +12h 18m b3 1 SOL 0.9905 SOL
5 +19h 43m b1 0.5 SOL 0.49225 SOL
6 +22h 54m b1 0.1 SOL 0.09365 SOL
left shielded 0 SOL · relayer fees 0.0472 SOL
✓ 8/8 checks passed · proofs: plan_total_exact … dust_bounded

Commands

Every command:--rpc--relayer--home--json
  • check <WALLET>

    How linked a wallet is.

  • shield <SOL> -k <keypair>

    Deposit into the pool from your main wallet.

  • plan <SOL> -b 3

    A Lean-checked exit plan. --save queues it.

  • unlink --daemon

    Runs each withdrawal when it is due.

  • queue

    Every saved plan, step by step.

  • burners

    Your burner wallets and their balances.

  • export <N>

    A burner's private key, for Phantom.

  • sweep <N> <TO>

    Send a burner's SOL to an address.

  • recover

    Restore from your wallet, words or a backup.

  • proofs

    The Lean theorems behind the planner.

Run it unattended

  • Checks the queue every 30 seconds
  • Saves the queue after every step
  • Spaces out steps that came due while it was off
daemon
$ LEANPOOL_PASSWORD=… \
leanpool unlink --daemon --rpc https://your-rpc

The password variable is readable by anything running as your user: use a machine you control.

Where things live

  • ~/.leanpool/vault.json
    Seed, notes and queue, encrypted. Same file as the app backup.
  • ~/.leanpool/circuit2/
    Privacy Cash proving files, checked by SHA-256.

What it talks to

  • Your RPC
    Balances and transactions
  • Privacy Cash relayer
    Deposits and withdrawals
  • LEAN POOL API
    Only for check
  • Nothing else
    No telemetry
what the planner guarantees
$ leanpool proofs
Unlink Planner · Lean 4.36.0 · 24 theorems · 0 sorry · standard axioms only
✓ plan_total_exact
Every lamport is accounted for: what burners receive, plus fees, plus what stays shielded, equals your amount.
✓ standard_chunks
Every withdrawal is one of the standard sizes, with exactly the relayer's fee.
✓ no_amount_echo
No withdrawal and no burner's running balance echoes your amount or anything you asked to avoid, unless it is a standard size.
✓ delays_respect_min
Nothing leaves before your minimum delay.
✓ gaps_respect_min
Withdrawals are at least your minimum gap apart.
✓ within_window
Every withdrawal lands inside the window you picked.
✓ burners_in_range
Every withdrawal goes to a burner you have, and each burner gets one when the balance allows.
✓ dust_bounded
What stays shielded is smaller than the smallest denomination.
✓ deterministic
Same input, same seed: the same plan, on any machine.
TypeScript port ≡ Lean: 100,000 random plans, 0 mismatches

Zero-knowledge proofs break the link. Lean proves every plan keeps its rules. The proofs