Skip to main content
Monitor instructions from specific Solana programs to build program analytics or analyze instruction patterns.

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):
Instruction discriminators are typically the first 8 bytes of the instruction data. They identify the specific instruction type within a program.

Filter by Account

Query instructions involving specific accounts:

Performance Tips

  1. Combine filters: Use both programId and d8 for specific instruction types
  2. Filter by accounts: Reduce results to specific program instances
  3. Request minimal fields: Omit data if you don’t need instruction payload
  4. Use slot ranges: Process data in 10k-50k slot batches

Query Transactions

Track wallet activity

Query Logs

Retrieve program log messages

DEX Swaps

Track DEX trading activity

API Reference

View complete API docs