Skip to content

jeanclawdbotdamn/solpulse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”† SolPulse β€” Autonomous Solana Health Monitor & Alert Agent

Real-time Solana network intelligence, powered by an AI agent. Zero dependencies. Pure onchain data.

License: MIT Python 3.8+ Solana

What is SolPulse?

SolPulse is an autonomous monitoring agent that queries the Solana blockchain directly via RPC and generates comprehensive health reports. It was built entirely by an AI agent as a submission for the Superteam Earn "Open Innovation Track" bounty.

No API keys required. No external dependencies. Just Python stdlib and the Solana blockchain.

Live Dashboard Preview

SolPulse Dashboard

Features

πŸ“‘ Network Health Dashboard

  • Current slot, block height, epoch progress
  • Real-time TPS (transactions per second) from performance samples
  • Average slot time monitoring
  • Network health status

πŸ›οΈ Validator Intelligence

  • Total active vs delinquent validator count
  • Total stake distribution
  • Top validators by stake
  • Commission tracking
  • Delinquent validator alerting

πŸ‹ Whale Wallet Tracker

  • Monitors known exchange and protocol wallets (Binance, Coinbase, Kraken, etc.)
  • Real-time SOL balances queried onchain
  • Recent transaction activity per wallet
  • Transaction status tracking

βš™οΈ Program Usage Analytics

  • Tracks the 10 most important Solana programs:
    • Jupiter v6 β€” DEX aggregator
    • Raydium AMM & CLMM β€” AMM liquidity
    • Orca Whirlpool β€” Concentrated liquidity
    • Phoenix DEX β€” Order book
    • Tensor β€” NFT marketplace
    • Magic Eden v2 β€” NFT marketplace
    • Marinade Finance β€” Liquid staking
    • OpenBook/Serum β€” Order book DEX
  • Recent transaction counts and activity status

πŸ’° DeFi TVL Monitor

  • Solana ecosystem TVL from DeFiLlama
  • Chain ranking among all L1/L2s
  • Top 15 protocols by TVL with 24h changes
  • 7-day TVL history with trend visualization
  • Protocol count tracking

🚨 Anomaly Detection & Alerts

Automatic detection of:

  • TPS drops below 500 (network stress)
  • TPS spikes above 5,000 (unusual activity)
  • Slow slot times above 0.6s
  • Validator delinquency above 2%
  • TVL changes exceeding 5% in 24h
  • SOL price moves exceeding 10% in 24h

πŸ“Š Multi-Format Reports

  • HTML Dashboard β€” Beautiful dark-theme dashboard with charts
  • JSON β€” Machine-readable structured data
  • Markdown β€” Human-readable report

How Solana is Used (Meaningfully)

SolPulse queries the Solana blockchain directly through JSON-RPC calls. Here's every onchain interaction:

RPC Method Purpose Data Retrieved
getSlot Current network position Latest slot number
getBlockTime Block timestamps Unix timestamp for slots
getBlockHeight Chain height Current block height
getEpochInfo Epoch tracking Epoch number, slot index, progress
getRecentPerformanceSamples TPS calculation Transaction counts per time period
getVoteAccounts Validator health Active/delinquent validators, stake
getBalance Whale tracking SOL balances for monitored wallets
getSignaturesForAddress Activity monitoring Recent transactions for wallets & programs
getHealth Network status RPC node health
getSupply Tokenomics Total SOL supply data

This is not just "using Solana as a database" β€” SolPulse performs real network health analysis by combining multiple onchain data points to detect anomalies and generate actionable intelligence.

Agent Autonomy

SolPulse operates as a fully autonomous agent:

  1. Self-executing β€” Runs without human intervention
  2. Watch mode β€” Continuous monitoring with configurable intervals
  3. Anomaly detection β€” Automatically identifies and flags issues
  4. Multi-source correlation β€” Combines onchain (Solana RPC) and offchain (DeFiLlama, CoinGecko) data
  5. Report generation β€” Produces actionable outputs in multiple formats
  6. Zero configuration β€” Works out of the box with public endpoints

Quick Start

# Clone
git clone https://github.com/YOUR_REPO/solpulse.git
cd solpulse

# Run a full scan (generates HTML + JSON + Markdown reports)
python3 solpulse.py

# JSON output only
python3 solpulse.py --json

# Continuous monitoring (every 60 seconds)
python3 solpulse.py --watch

# Custom interval (every 30 seconds)
python3 solpulse.py --watch 30

# Alerts only (quick anomaly check)
python3 solpulse.py --alerts-only

Requirements: Python 3.8+ (stdlib only β€” no pip install needed!)

Output

Reports are generated in the output/ directory:

  • solpulse_dashboard.html β€” Interactive dark-theme dashboard with TVL chart
  • solpulse_report.json β€” Full structured data
  • solpulse_report.md β€” Human-readable Markdown report

Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚              SolPulse Agent                  β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  Data Collection Layer                      β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”   β”‚
β”‚  β”‚ Solana   β”‚ β”‚DeFiLlama β”‚ β”‚CoinGecko β”‚   β”‚
β”‚  β”‚ RPC      β”‚ β”‚  API     β”‚ β”‚  API     β”‚   β”‚
β”‚  β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜   β”‚
β”‚       β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜          β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”        β”‚
β”‚  β”‚     Analysis & Alert Engine     β”‚        β”‚
β”‚  β”‚  β€’ TPS anomaly detection        β”‚        β”‚
β”‚  β”‚  β€’ Validator health scoring     β”‚        β”‚
β”‚  β”‚  β€’ TVL trend analysis           β”‚        β”‚
β”‚  β”‚  β€’ Whale activity monitoring    β”‚        β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜        β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”        β”‚
β”‚  β”‚     Report Generation           β”‚        β”‚
β”‚  β”‚  β€’ HTML Dashboard               β”‚        β”‚
β”‚  β”‚  β€’ JSON Data                    β”‚        β”‚
β”‚  β”‚  β€’ Markdown Report              β”‚        β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Technical Details

  • Language: Python 3 (stdlib only β€” urllib, json, datetime, html)
  • Solana RPC: Public mainnet endpoint (api.mainnet-beta.solana.com)
  • External APIs: DeFiLlama (TVL data), CoinGecko (price data) β€” both free, no keys
  • Output: HTML (with inline JS chart), JSON, Markdown
  • Rate limiting: Built-in delays between RPC calls to respect public endpoints
  • Error handling: Graceful degradation β€” if one data source fails, others still report

Sample Output

πŸ”† SolPulse β€” Autonomous Solana Health Monitor
==================================================
  πŸ’² SOL: $79.85 (-5.2%)
  πŸ“‘ TPS: 3,633 avg | Slot time: 0.392s
  πŸ›οΈ  Validators: 786 active | 19 delinquent
  πŸ’° TVL: $6.37B (Rank #2)

🚨 ALERTS:
  [HIGH] 🚨 2.4% validators delinquent (19 nodes)

License

MIT License β€” see LICENSE

Built By

This project was conceived, designed, coded, tested, and documented entirely by an AI agent (Jean Claw Bot Damn πŸ¦€) running on OpenClaw. The agent autonomously:

  1. Tested Solana RPC endpoints to verify data availability
  2. Designed the data collection architecture
  3. Implemented the full Python application
  4. Debugged and fixed issues (e.g., RPC field name differences)
  5. Generated and verified real reports with live Solana data
  6. Wrote this documentation

No human wrote a single line of code.

About

πŸ¦€ Autonomous Solana network health monitor, whale tracker & alert system. Queries live onchain data via RPC.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors