API Transaction Enhanced - Filtering by Program Instruction
Filter an account's transaction history by specific on-chain instruction using a PROGRAM_ADDRESS + DISCRIMINATOR pair, so you retrieve only the interactions that matter.
Filtering by Program Instruction — Developer Reference
Overview
The instruction[] Parameter
instruction[] ParameterWhat it does
Format
Example from Solscan API
Web UI vs API mapping
How to Find the Right Hex Value
Hex Dictionary
Case 1 — Anchor Programs (8-byte discriminator)
How to compute
How to find instruction names from IDL
Case 2 — Native Programs (1-byte enum discriminator)
How to find the hex value from a transaction
Summary: Three Cases at a Glance
Discriminator Reference Tables
Anchor Programs
Jupiter V6 Aggregator — JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4
JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4Jupiter Limit Order — jupoNjAxXgZ4rjzxzPMP4oxduvQsQtZzyknqvzYNrNu
jupoNjAxXgZ4rjzxzPMP4oxduvQsQtZzyknqvzYNrNuPumpFun — 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P
6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6PPumpSwap AMM — pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA
pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEAMeteora DLMM — LBUZKhRxPF3XUpBCjp4YzTKgLLjeyegsnkragzgX3e1
LBUZKhRxPF3XUpBCjp4YzTKgLLjeyegsnkragzgX3e1OpenBook V2 — opnb2LAfJYbRMAHHvqjCwQxanZn7ReEHp1k81EohpZb
opnb2LAfJYbRMAHHvqjCwQxanZn7ReEHp1k81EohpZbMarinade Finance — MarBmsSgKXdrN1egZf5sqe1TMai9K1rChYNDJgjq7aD
MarBmsSgKXdrN1egZf5sqe1TMai9K1rChYNDJgjq7aDKamino Lending — KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD
KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjDNative Programs (1-byte enum)
SPL Token — TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DARaydium AMM V4 — 675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8
675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8Full Request Examples — Combined Filters
USDC swaps on Jupiter V6 within a time window
New token launches on PumpFun (program as address)
Market maker order activity on OpenBook V2 with slot range
Paginating through results with cursor
Choosing the Right Encoding
Last updated
Was this helpful?
