惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

月光博客
月光博客
IT之家
IT之家
Hugging Face - Blog
Hugging Face - Blog
J
Java Code Geeks
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 叶小钗
MyScale Blog
MyScale Blog
G
Google Developers Blog
Microsoft Azure Blog
Microsoft Azure Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
大猫的无限游戏
大猫的无限游戏
博客园 - 三生石上(FineUI控件)
Google DeepMind News
Google DeepMind News
Engineering at Meta
Engineering at Meta
The Cloudflare Blog
Martin Fowler
Martin Fowler
酷 壳 – CoolShell
酷 壳 – CoolShell
N
Netflix TechBlog - Medium
MongoDB | Blog
MongoDB | Blog
I
InfoQ
WordPress大学
WordPress大学
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
H
Help Net Security

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Solana Validator Stake Checker CLI — Track Decentralizati...
neuralmint · 2026-05-27 · via DEV Community

Ever wondered how decentralized Solana really is? With over 1,500 validators securing the network, it's hard to see the big picture from the command line. Until now.

Meet Solana Validator Stake Checker — a pure stdlib Python CLI that queries the Solana mainnet RPC to show you validator stake distributions, the Nakamoto coefficient, and individual validator details. No pip install, no API keys, no dependencies.

Features

  • Top Validators by Stake — ranked with vote account, commission, and active stake
  • Validator Lookup — inspect any validator by vote account address
  • Nakamoto Coefficient — how many validators control 33.3%+ of total stake (centralization measure)
  • JSON mode--json for piping into other tools
  • Zero dependencies — pure Python stdlib only

Install

curl -L https://raw.githubusercontent.com/neuralmint/solana-stake-checker/main/solana_stake_checker.py -o solana_stake_checker.py
python3 solana_stake_checker.py --help

Enter fullscreen mode Exit fullscreen mode

Or clone the repo:

git clone https://github.com/neuralmint/solana-stake-checker.git
cd solana-stake-checker
python3 solana_stake_checker.py

Enter fullscreen mode Exit fullscreen mode

Usage

List top 10 validators

python3 solana_stake_checker.py

Enter fullscreen mode Exit fullscreen mode

Rank Vote Account         Commission   Active Stake (SOL)
---------------------------------------------------------
1    CcaH…oTN1            7%                15,823,512.73
2    he1i…uBtk            0%                14,829,828.83
3    3N7s…iD5g            0%                13,344,370.46
4    4D9R…7jFM            0%                12,931,831.43
...

Total Network Stake: 427,731,796.78 SOL
Nakamoto Coefficient (33.3% stake): 19

Enter fullscreen mode Exit fullscreen mode

Look up a specific validator

python3 solana_stake_checker.py --lookup CcaHc2L43ZWjwCHART3oZoJvHLAe9hzT2DJNUpBzoTN1

Enter fullscreen mode Exit fullscreen mode

Machine-readable JSON

python3 solana_stake_checker.py --top 5 --json

Enter fullscreen mode Exit fullscreen mode

{
  "total_stake_sol": 427731796.78,
  "nakomoto_coefficient": 19,
  "validators": [
    {"rank": 1, "vote_account": "CcaHc...oTN1", "commission": 7, "active_stake_sol": 15823512.73},
    ...
  ]
}

Enter fullscreen mode Exit fullscreen mode

Custom top N

python3 solana_stake_checker.py --top 25

Enter fullscreen mode Exit fullscreen mode

How it works

The tool calls Solana's public JSON-RPC endpoint at https://api.mainnet-beta.solana.com using urllib.request (stdlib). It uses two RPC methods:

  • getVoteAccounts — validator list with stake, commission, and vote account addresses
  • getEpochInfo — current epoch context

All output is formatted client-side with standard Python formatting. No caching, no database, no API keys — just the public Solana RPC.

Tech Stack

  • Language: Python 3 (stdlib only — urllib, json, argparse, sys)
  • Dependencies: None. Zero. Zip.
  • License: MIT — free to use, modify, and distribute
  • API: Solana Mainnet Beta public RPC endpoint

Why Nakamoto Coefficient Matters

The Nakamoto coefficient is a decentralization metric: the smallest number of validators that would need to collude to disrupt the network. For Solana, you need the top ~19 validators to reach 33.3% of total stake (a supermajority for Byzantine fault tolerance). The higher this number, the more decentralized the network.

This tool lets you track how this metric changes over time — run it daily and compare!

What's next?

This is part of the neuralmint CLI Tools series — pure stdlib, single-file Python tools for crypto and developer utility. Check out the other tools:

Support

If you find this tool useful, consider tossing a coin to your validator:

SOL: 4TGyiYBjaYhFFPNYyCoJjf16ctUsWVBiMR1FXQxEfhWi

ETH: 0xe07f177E0725c11EEc8BeA34C5b5193CaF2a1A6a