SphereNet Admin CLI
Command-line interface for administering SphereNet validator and program whitelists.
Overview
SphereNet administration tool for governance and network management:
Whitelist Management:
- Validator Whitelist - Control which validators participate in consensus
- Program Whitelist - Control which authorities can deploy/upgrade programs
Program Operations:
- Deploy, upgrade, and extend programs with whitelist enforcement
- Full lifecycle management with single-sig or multisig governance
Authority Abstraction:
- Unified interface for immediate execution (single-sig) or governance (multisig)
- Powered by
spherenet-authoritycrate with Squads V4 integration - Create proposals, gather approvals, execute with any member
Configuration
Connects to SphereNet testnet by default. Override with --url <RPC_URL> flag.
Commands
All commands support both single-sig (immediate execution) and multi-sig (proposal creation) modes.
Validator Whitelist (vw)
Manage which validators can participate in consensus.
Example: Add Validator
# Single-sig (executes immediately)
# Multi-sig (creates proposal for approval)
Other Commands:
vw list- Show all whitelisted validatorsvw remove <VOTE_ACCOUNT>- Remove validator from whitelistvw update-start-epoch <VOTE_ACCOUNT> --epoch <N>- Update when validator can startvw update-end-epoch <VOTE_ACCOUNT> --epoch <N>- Update when validator term endsvw auth- View current whitelist authorityvw propose-authority <NEW_AUTHORITY>- Initiate authority transfervw accept-authority- Accept pending authority transfervw cancel-authority- Cancel pending authority transfer
Program Whitelist (pw)
Manage which authorities can deploy/upgrade programs. Controls WHO can deploy, not WHICH programs can execute.
Example: Add Deployer Authority
# Single-sig
# Multi-sig
Other Commands:
pw list- Show all whitelisted deployer authoritiespw remove <DEPLOYER>- Remove deployer authoritypw auth- View current whitelist authoritypw propose-authority <NEW_AUTHORITY>- Initiate authority transferpw accept-authority- Accept pending authority transferpw cancel-authority- Cancel pending authority transfer
Program Deployment (program)
Deploy and upgrade programs with whitelist enforcement. Upgrade authority must be whitelisted before deployment.
Example: Deploy Program
Example: Upgrade Program (Multi-sig)
# Create upgrade proposal
# Then: approve with threshold members, execute by any member
Other Commands:
program extend --program-id <ID> --bytes <N>- Extend program capacity (works with multisig!)
Multisig Upgrade Authority Lifecycle:
- Deploy with single-sig authority (this tool)
- Transfer authority to multisig:
solana program set-upgrade-authority <PROGRAM> --new-upgrade-authority <VAULT_PDA> --upgrade-authority ./authority.json --skip-new-upgrade-authority-signer-check - Upgrade through multisig governance (this tool)
- Extend capacity through multisig governance (this tool - uses
ExtendProgramChecked)
Note: Authority transfer FROM multisig back to single-sig is not currently supported due to CPI coordination constraints. Once transferred to multisig, programs remain under governance control.
Multisig Management (multisig)
Create and manage Squads V4 multisig vaults. Provides spherenet-authority crate integration.
Example: Create Multisig
Proposal Workflow:
# Approve (requires threshold members)
# Execute (any member can execute once threshold met)
Other Commands:
multisig program-config-init- One-time Squads program setupmultisig show --multisig <PDA>- View multisig info (members, threshold, balance)
Transfer & Airdrop
Transfer SOL:
# Single-sig
# Multi-sig (creates proposal)
Airdrop (testnet only):
Architecture
The CLI uses:
spherenet-validator-whitelist-client- Generated instruction builders for validator whitelist operationsspherenet-program-whitelist-client- Generated instruction builders for program whitelist operationsspherenet-authority- Authority abstraction and Squads v4 multisig integration
All instruction builders are generated from their respective interface definitions using Codama/Kinobi.
Network Information
Testnet:
- RPC:
https://api.testnet.sphere.net - Validator Whitelist Program:
wLpnFMEvuP6hPE84AGrsmNr2Bo2uk69MC4kKWtrWHBN - Program Whitelist Program:
PwLzPtX2e5PwNFQTrEY5DkkmRQ1t1x5vWcGzTnMgibR - Squads v4 Program:
SQDS4ep65T869zMMBKyuUq6aD6EgTu8psMjkvj52pCf