Overview
Transaction monitoring lets you watch Solana transactions as they happen. Track swaps, transfers, success/failures, program calls, and token changes - all in real-time.You’ll need: Run
npm install @triton-one/yellowstone-grpc firstInstallation
Complete Working Example
Here’s a ready-to-use transaction monitor that you can customize:How to Filter Transactions
- By Program
- By Account
- Advanced
Watch transactions using specific programs:
More Examples
Example 2: Track Failed Transactions
Find out why transactions fail:Example 3: Watch Big Transfers
Track large SOL transfers:Understanding Filters
Include (OR)
accountInclude: Transaction must touch ANY of these accounts
Required (AND)
accountRequired: Transaction must touch ALL of these accounts
Exclude (NOT)
accountExclude: Transaction must NOT touch any of these
How They Work Together
Transaction passes if: (include OR empty) AND (all required) AND NOT (any excluded)
What You Can Build
Trading Bots
Trading Bots
Monitor DEX transactions to find trading opportunities, track competitors, or analyze market activity in real-time.
Transaction Trackers
Transaction Trackers
Watch specific wallets or programs to see every transaction they make. Perfect for portfolio tracking or whale watching.
Failure Monitors
Failure Monitors
Track failed transactions to debug your program, understand user issues, or monitor network problems.
Volume Analyzers
Volume Analyzers
Measure transaction volume, fees, and activity across programs to understand usage patterns and trends.
Alert Systems
Alert Systems
Get instant notifications for high-value transfers, specific program calls, or suspicious activity.
Tips for Better Performance
Pick Right Commitment
CONFIRMED is usually best - fast but reliable
Filter Smart
Use specific program IDs to reduce data
Process Async
Don’t block - handle transactions asynchronously
Watch Resources
Monitor your memory and CPU usage
Common Questions
How much data will I get?
How much data will I get?
It depends on your filters. Watching all transactions = huge data. Watching one program = manageable. Watching a specific wallet = very little. Always use filters!
Can I watch multiple programs at once?
Can I watch multiple programs at once?
Yes! Just add them all to
accountInclude. The transaction will match if it touches ANY of them.What's the difference between Include and Required?
What's the difference between Include and Required?
- Include (OR): Transaction touches ANY of these accounts
- Required (AND): Transaction touches ALL of these accounts
Should I include failed transactions?
Should I include failed transactions?
Usually no - they’re just noise. But set
failed: true if you’re debugging or analyzing failure patterns.How do I track a specific wallet?
How do I track a specific wallet?
Add the wallet address to
accountInclude. You’ll see every transaction that touches that wallet.Why do I see vote transactions?
Why do I see vote transactions?
Set
vote: false in your filter. Vote transactions are validator consensus votes and usually aren’t what you want.What are compute units?
What are compute units?
Compute units measure how much computation a transaction used. More complex transactions use more compute units and usually cost more.
Next Steps
Account Monitoring
Also watch account changes
Real Example: Pump.fun
See transaction parsing in action
Best Practices
Optimize your setup
Quickstart
Get started fast