Treasury & Wallets
The Treasury Manager is the central hub for all wallet operations in TrenchTools.
Wallet Management
Creating Wallets
- Add Sub-Wallet: Generate a new random keypair
- Import: Import an existing wallet via private key
- Choose type: Treasury, Sniper, or Burner
Wallet Grid
Each wallet card shows:
- Name and type badge
- Public address (truncatable, copyable)
- SOL balance (auto-refreshes)
- Token holdings count
Wallet Actions
- Rename: Change the wallet's display name
- Change Type: Switch between treasury/sniper/burner
- Copy Address: Copy public key to clipboard
- Export: Export private key (requires vault unlock)
- Delete: Permanently remove from vault
Bulk Operations
Bulk Fund
Send SOL from your treasury wallet to multiple sub-wallets at once.
- Select target wallets
- Enter SOL amount per wallet
- Click Fund All
- Each transfer is a separate on-chain transaction
Bulk Sweep
Collect all SOL from sub-wallets back to your treasury.
- Select wallets to sweep
- Click Sweep All
- Each wallet transfers its balance minus a small fee reserve (5000 lamports)
Sell All Tokens
Sell all token holdings across all selected wallets.
- Select wallets
- Click Sell All Tokens
- For each wallet, scans token accounts
- Attempts Jupiter sell first, falls back to PumpFun if needed
- Records each trade in TX history
Bot Wallets Section
At the bottom of the Treasury page, a collapsible "Bot Wallets" section shows wallets generated by Bot Groups.
- Grouped by bot name prefix (e.g., all "PumpBot-W*" together)
- Each wallet can be individually expanded to show:
- Sell Tokens: Sell all tokens on this specific wallet
- Sweep SOL: Transfer SOL back to treasury
- Copy: Copy the wallet address
Bot wallets are filtered out of the main wallet grid to keep it clean.
Security
- All private keys are encrypted in the browser vault
- Vault must be unlocked to perform any wallet operation
- Password is held in memory only while unlocked
- No keys are ever sent to any server
- Export creates an encrypted backup file