Developer leftovers
Unfinished program uploads, programs, their IDLs, lookup tables and durable nonces a wallet can close, what each returns, and what no wallet can close.
Anyone who ever ran solana program deploy, anchor deploy or a bot has SOL sitting in accounts that no token program owns. A scan lists them as assets with family developer, next to the wallet's tokens. Each one is found by the wallet's own address in the place its program records who may close it, so a scan lists only what the wallet itself can sign for.
What a scan finds
kind | What it is | What closing it does |
|---|---|---|
program_upload | An unfinished program upload: a loader deploy buffer a deploy or upgrade left (developer.upload deploy_buffer), a Program Metadata or Anchor IDL upload buffer (metadata_buffer, idl_buffer), or a loader account that was never initialized and that this wallet paid for (uninitialized). | Returns its rent. Nothing runs from an upload; at worst a deploy still using it has to upload again. |
program | A program whose upgrade authority is the wallet. | Closes its ProgramData, and its Program Metadata accounts first, in one transaction. The program stops working forever, and every account it owns freezes for good. |
program_idl | That program's Anchor IDL account. | Returns its rent. Select it with the program: it closes in the round before the program's, since only the live program can close it. |
lookup_table | An address lookup table whose authority is the wallet. | Two steps: deactivate turns it off (apps and signed transactions that use it fail from then on), and close returns its rent in a later cleanup, about 4 minutes on. |
nonce_account | A durable nonce whose authority is the wallet. | Withdraws everything; any transaction signed ahead of time with it can never land. |
None is preselected (preselected false), and none counts in the safe set. Each carries a tier: 1 closes something unused, 2 can't be undone and might matter, 3 is a program. Preparing a round with a tier 2 or 3 item takes acknowledged: true on its selection, set only once the person chose it knowing that; without it, it is skipped as needs_acknowledgement. An item in use lately says so in inUse: an upload written to in the last 7 days (recently_touched), a nonce used in the last 30 (recently_used).
Durable nonces are found where the RPC can read the System Program by authority: locally and on Surfpool. Burn & Claim's deployed stages leave them out until its RPC provider serves that read.
What it costs
The fee is a share of the rent each item returns, at its code's rate in GET /v1/fees: program_upload_closure, program_closure (a program or its IDL), lookup_table_closure (charged on the close; turning a table off is free) and nonce_account_closure. SOL that isn't rent is the person's own and comes back with no fee, on its own line, in strayLamports: a nonce's deposit above today's rent-exempt minimum, or SOL someone sent to an account by mistake.
Closing a program
Closing a program can't be undone, so it never happens by default, and an agent never does it:
GET /v1/wallets/{address}/programs/{programId}/checkssays what closing it would lock or break, as warnings, never a block: SOL in accounts it owns (likely other people's), tokens, SOL, stake or authorities held by addresses only the program can sign for, and use by others in the last 90 days. Show every warning.- The quote's
confirmlists each program withstops_working_forever, its checks, andholdRequired: the person confirms with one press and hold. - The round's
confirmIrreversiblenames exactlyconfirm.programs. A round without it is refused withconfirmation_required.
The 36-byte Program account isn't closed: no instruction can close it, so its small deposit stays behind, and the address can never host a program again.
What no wallet can close
A scan never lists these, because no wallet can sign to close them:
- The executable Program account of an upgradeable program: the loader has no instruction that closes it.
- Immutable programs, deployed final or with their upgrade authority removed: nothing can close them.
- Programs on the deprecated loaders (BPF Loader v1 and v2): their management instructions are turned off.
- Loader v4 programs: the Loader v4 builtin was removed from Solana's validator; recheck when it returns as an on-chain program.
- Frozen lookup tables: a table with no authority can never close.
- Anything a multisig or another program controls, such as a Squads vault's programs: its members approve closes in Squads, and Burn & Claim can't sign for it.