Skip to main content
This guide documents the open Yellowstone gRPC protocol. For the LaserStream-flavored version with the helius-laserstream SDK, see LaserStream → Slot & Block Monitoring.

Overview

Slot and block monitoring provides insights into Solana’s network consensus, block production timing, and network health. Track slot progression, block finalization, and network performance metrics in real-time.
Prerequisites: This guide assumes you’ve completed the Yellowstone gRPC Quickstart and have a working stream setup.

Monitoring Types

Track network consensus progressionMonitor slot advancement across different commitment levels:
Slot data includes:
  • Slot number
  • Parent slot
  • Commitment status (processed, confirmed, finalized)
  • Leader information
Best for: Network health monitoring, slot timing analysis, consensus tracking

Practical Examples

Example 1: Network Health Monitor

Track slot progression and identify network issues:

Example 2: Block Production Monitor

Track block production and transaction volume:

Example 3: Filtered Block Monitor

Monitor blocks containing specific program activity:

Data Structures

Understanding slot and block data formats:
Slot progression: Each slot represents ~400ms of network timeCommitment levels:
  • Processed: Initial slot processing
  • Confirmed: Supermajority confirmation
  • Finalized: Irreversible finalization
Block time: Estimated time when the block was producedRewards: Validator rewards for block production
Size warning: Full blocks can be several MB with all transactions and accounts

Performance Considerations

Slot Monitoring

Lightweight and efficient
  • Very low bandwidth usage
  • Real-time network health insights
  • Minimal processing overhead
  • Good for monitoring dashboards

Block Metadata

Balanced approach
  • Moderate bandwidth usage
  • Block-level insights without full data
  • Transaction counts and timing
  • Suitable for analytics

Full Blocks

High volume data
  • High bandwidth requirements
  • Complete transaction data
  • Requires robust processing
  • Use filters to reduce volume

Filtered Blocks

Optimized streaming
  • Use accountInclude filters
  • Disable unnecessary data (entries, accounts)
  • Focus on specific programs
  • Balance detail with performance

Use Cases

Track network health and performance
  • Slot timing analysis
  • Network congestion detection
  • Consensus monitoring
  • Validator performance

Error Handling

Common issues and solutions:
Issue: Gaps in slot progressionCauses:
  • Network connectivity issues
  • Validator downtime
  • Client processing delays
Solutions:
  • Track slot gaps and alert
  • Implement catch-up logic
  • Monitor connection health
Issue: Too much block dataSolutions:
  • Use block metadata instead of full blocks
  • Apply account filters to reduce data
  • Disable unnecessary inclusions (entries, accounts)
  • Process data asynchronously
Issue: Inconsistent slot timingAnalysis:
  • Calculate moving averages
  • Track timing deviations
  • Monitor network health metrics
  • Correlate with validator performance

Best Practices

Production Guidelines:
  • Start with metadata - Use block metadata before full blocks
  • Apply filters - Use accountInclude to reduce irrelevant data
  • Monitor timing - Track slot progression for network health
  • Handle gaps - Implement logic for missing slots/blocks
  • Process async - Don’t block stream processing with heavy computations
  • Use appropriate commitment - Match commitment level to your needs

Next Steps

Entry Monitoring

Learn about low-level blockchain entry monitoring

Advanced Patterns

Real-world example: monitoring Pump AMM data