What is Yellowstone gRPC?
Yellowstone gRPC provides direct access to Solana blockchain data through high-performance streaming. Unlike traditional RPC polling, gRPC delivers real-time updates with minimal latency, making it ideal for:- Trading Bots - Execute trades faster with real-time data
- DeFi Applications - Monitor liquidity pools and token swaps instantly
- Analytics Platforms - Track on-chain activity as it happens
- Arbitrage Systems - Detect opportunities with millisecond precision
Quick Start
1
Subscribe to Yellowstone gRPC
Subscribe to the gRPC service at $247/month:Subscribe to Yellowstone gRPCWhat you get:
- Two Regional Endpoints:
- EU Region:
https://grpc.solanatracker.io
- US Region:
https://grpc-us.solanatracker.io
- EU Region:
- Jito Shreds - 50-100ms faster data delivery
- No Bandwidth Charges - Unlimited data streaming
- 24/7 Uptime - Automatic failover and monitoring
Choose the endpoint closest to your infrastructure for optimal performance. Co-locate in the same data center for sub-millisecond latency.
2
Get Your API Credentials
After subscribing, retrieve your authentication credentials:Get Your API TokenYou’ll receive:
- x-token - Your authentication token for gRPC requests
- Endpoint URLs - Both EU and US regions
- Configuration Guidelines - Recommended settings
Keep your token secure!
- Never commit tokens to version control
- Use environment variables
- Rotate tokens periodically
3
Install Dependencies
Install the Yellowstone gRPC client:
Complete Working Example
Here’s a complete, production-ready example that monitors transactions:What This Example Does
- Connects to Yellowstone gRPC with proper error handling
- Creates a stream with lifecycle event handlers
- Subscribes to transactions involving the Token Program
- Processes each transaction and logs key details
- Handles errors gracefully with proper cleanup
Monitoring Different Data Types
- Account Updates
- Slot Updates
- Block Data
Monitor account changes:
Environment Variables
Store your credentials securely:What’s Next?
Transaction Monitoring
Monitor DEX transactions and program activity
Account Monitoring
Track token holders and account changes
Pump.fun Example
Build a Pump.fun trading bot
Best Practices
Optimize for production
Common Questions
Which endpoint should I use?
Choose based on your location:- Europe/Global:
https://grpc.solanatracker.io
- North America:
https://grpc-us.solanatracker.io
How do I handle reconnections?
Wrap your connection logic in a retry function:What commitment level should I use?
Commitment levels:- PROCESSED - Fastest, but can be rolled back
- CONFIRMED - Balanced speed and finality (recommended)
- FINALIZED - Slowest, but guaranteed finalized
CONFIRMED
is the best choice.
How do I filter transactions?
Use the filter fields in your subscribe request:Support & Resources
Support
Get help with your implementation[email protected]
Yellowstone gRPC Source
Complete protobuf definitions and protocol specsView Repository