SphereNet Admin CLI
Command-line interface for administering SphereNet validator and program whitelists.
Overview
SphereNet administration tool for governance and network management:
Governance:
- Validator Whitelist - Control which validators participate in consensus
- Program Whitelist - Control which authorities can deploy/upgrade programs
- Monetary Policy - Manage inflation rate, transaction fees, and fee burn percentage
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 show- Show validator whitelist account (authority and entries)vw 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 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 show- Show program whitelist account (authority and entries)pw remove <DEPLOYER>- Remove deployer authoritypw propose-authority <NEW_AUTHORITY>- Initiate authority transferpw accept-authority- Accept pending authority transferpw cancel-authority- Cancel pending authority transfer
Monetary Policy (mp)
Manage SphereNet's monetary policy parameters: inflation rate, transaction fees, and fee burn percentage.
Example: Update Inflation Rate
# Single-sig
# Multi-sig
Commands:
mp show- Show monetary policy account (authority and parameters)mp create --authority <PATH> --payer <PATH>- Create monetary policy account (testnet only)mp update-inflation-rate-bips <BIPS>- Update inflation rate (0-2000 bips = 0-20%)mp update-lamports-per-signature <LAMPORTS>- Update transaction feemp update-burn-percent <PERCENT>- Update fee burn percentage (0-100%)mp propose-authority <NEW_AUTHORITY>- Initiate authority transfermp accept-authority- Accept pending authority transfermp 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-monetary-policy-client- Generated instruction builders for monetary policy 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 - Monetary Policy Program:
MpM3Yve3AkLvrVsZXvD3hmUmqKj669bv75DPW67PAdr - Squads v4 Program:
SQDS4ep65T869zMMBKyuUq6aD6EgTu8psMjkvj52pCf