CLI Utils

Fetch Tables

This utility shows all lookup tables that will be used by the system. It loads the tables from your wallet and tables from system.toml.

Deactivate Tables

This utility allows you to deactivate your active lookup tables. It shows only tables that belong to your wallet and are in an active state. After selecting tables and confirming, the utility sends transactions to deactivate the selected tables. (5 tables per transaction)

Deactivation is needed to prepare a table for subsequent closing. Closing a table returns the funds spent on creation/extension back to the user.

Close tables

This utility allows you to fully close your deactivated lookup tables. Only tables that belong to your wallet and are already deactivated can be closed. Closing returns the funds allocated for storing addresses (rent) that were spent when creating or extending the table.

circle-info

For closing one full table (256 addresses) you get back 0.05829536 SOL

An Address Lookup Table (ALT) in Solana has a lifecycle, and closing is the final step:

  1. Creation — the table is created and activated.

  2. Adding addresses — it can be expanded by adding addresses.

  3. Deactivation — the table is put into an inactive state so it can no longer be used.

  4. Closing — only after this step are the funds spent on rent returned to the owner.

So if you try to close a table too early, you may encounter an error like Program log: Table cannot be closed until it's fully deactivated in 192 blocks


Fetch Nonces

This utility shows all Durable Nonce accountsassociated with your wallet. Thanks to Durable Nonce you can pre-sign and store transactions, and then safely send them later.

Manage Nonce Accounts

This utility manages the number of Durable Nonce accounts, creating or closing them to reach the desired count. You set a target number (for example, 100), and the system automatically creates the missing ones or closes the excess.

One Durable Nonce account requires about 0.00145 SOL (≈ 1,447,680 lamports) for rent, but when closed the entire amount is returned. To close all and get SOL for rent back — simply specify 0.

circle-info

It is recommended to have 100 accounts — this is enough to distribute nonces across all active transactions so each uses its own unique nonce and doesn't require updating the others after sending.

  • When creating nonce accounts, a maximum of 5 are created per transaction

  • When closing - 15


Wrap SOL

This utility converts regular SOL into Wrapped SOL (wSOL) — required for interacting with pools. It creates a token account (if one doesn't exist), transfers the specified amount of SOL and synchronizes the balance.

Unwrap SOL

The reverse operation: the utility unwraps wSOL back into SOL, closing the token account and returning all rent and funds back to the main wallet.


Fetch Pools

This utility uses the filter settings from the POOL_LOADER block of the current preset and queries an external API to get the list of pools that will be used by the system. The retrieved data is saved to the file resources/pools-data.json.

This is especially useful before running a strategy, to make sure which exact pools match your filters and will be involved in operation.

Last updated