Skip to main content

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 standalone gRPC service at €200/month, or get it bundled free with RPC Business and Professional plans. See Pricing & Limits for details.Subscribe to Yellowstone gRPCWhat you get:
  • Two Regional Endpoints:
    • EU Region: https://grpc.solanatracker.io
    • US Region: https://grpc-us.solanatracker.io
  • 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

  1. Connects to Yellowstone gRPC with proper error handling
  2. Creates a stream with lifecycle event handlers
  3. Subscribes to transactions involving the Token Program
  4. Processes each transaction and logs key details
  5. Handles errors gracefully with proper cleanup

Monitoring Different Data Types

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
Test both endpoints and use the one with lower latency from your deployment region. Aim for ~1ms latency by co-locating in the same data center.

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
For most applications, 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 implementationsupport@solanatracker.io

Yellowstone gRPC Source

Complete protobuf definitions and protocol specsView Repository