Use Case
Instruction queries help you:- Track program interactions and usage
- Monitor specific program activity
- Analyze instruction patterns
- Build program analytics dashboards
Code Example
Try it yourself with the interactive query interface below:
Key Parameters
Expected Output
Filter by Instruction Discriminator
Query only specific instruction types (e.g., swap instructions):Filter by Account
Query instructions involving specific accounts:Performance Tips
- Combine filters: Use both
programIdandd8for specific instruction types - Filter by accounts: Reduce results to specific program instances
- Request minimal fields: Omit
dataif you don’t need instruction payload - Use slot ranges: Process data in 10k-50k slot batches
Related Examples
Query Transactions
Track wallet activity
Query Logs
Retrieve program log messages
DEX Swaps
Track DEX trading activity
API Reference
View complete API docs