Reclaiming rent from Serum and OpenBook accounts
Trading on a Serum or OpenBook market needed an "open orders" account for every market a wallet traded on, each locking up to about 0.023 SOL of rent — more than ten times a token account. Swap apps created them on the way through, and most were never closed. Many wallets hold some without knowing.
At a glance
| Serum and OpenBook accounts | |
|---|---|
| Rent held | Up to about 0.023 SOL each, less for accounts opened since Solana lowered its rent rate |
| Programs | Serum v3 and OpenBook v1 (not OpenBook v2) |
| Listed when | Your wallet owns it, with no open orders and no tokens left to settle |
| Closing does | The program’s own close instruction, returning the rent to your wallet |
| Our fee | 10% of the rent, or 20% from an empty wallet (fees) |
| In "Claim All" | Yes, by default |
Where they come from
Serum was the order-book exchange most of Solana's early trading went through, and OpenBook is the community fork that replaced it in 2022. Placing an order on one of their markets needed a small account to track that wallet's orders and unsettled tokens on that market. Aggregators and swap apps routed trades through these markets, so a wallet that swapped a lot in those years can hold dozens of these accounts, one per market, created without a word.
What gets listed
Only accounts your wallet owns that hold nothing: no open order and no tokens waiting to be settled. That is also the only state the program allows an account to be closed in, so a close cannot cancel an order or lose a token. An account that still has something in it needs its orders cancelled or its tokens settled on the market first, and is left out.
Why the programs are pinned
Closing one of these accounts passes your wallet to the program as a signer, and both programs can still be upgraded by keys outside our control — Serum v3's upgrade key was held by FTX, which is why the community forked it. So each program is pinned to the exact deployment we reviewed and tested. If either is ever upgraded, its accounts stop being listed or closed here until the new code has been checked.
Questions
I never used OpenBook. Why do I have these accounts?
Serum, and OpenBook after it, needed one of these accounts per market for every wallet that traded there, and many swap apps and aggregators routed trades through those markets and created them without saying so. Each one locked up to about 0.023 SOL, and most were never closed.
Can closing one cancel an order or lose tokens?
No. Only accounts with no open orders and no tokens waiting to be settled are listed, which is also the only state the program lets an account be closed in. An account with something in it needs its orders cancelled or settled on the market first, and is left out.
Which programs are covered?
Serum v3 and OpenBook v1, the two that hold nearly all of these accounts. OpenBook v2 is not covered yet.
Why would a program be switched off?
Closing passes your wallet to the program as a signer, and both programs can still be upgraded by keys we have no say over. Each is pinned to the exact deployment we reviewed: if either is ever upgraded, its accounts stop being listed until the new code has been checked.
The other kinds of account: empty token accounts, stake accounts and program buffers.
Scan a wallet for OpenBook accounts