Solana IDL reference › Jupiter Aggregator v6 › SwapEvent
Jupiter Aggregator v6 event. Program ID JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4. Data starts with the 8-byte event discriminator, published in the IDL.
Discriminator (published in the IDL)
hex 0x40c6cde8260871e2
bytes [64, 198, 205, 232, 38, 8, 113, 226]
base58 BqR1a47j945
| Field | Type | Offset | Size |
|---|---|---|---|
| amm | pubkey | 8 | 32 |
| input_mint | pubkey | 40 | 32 |
| input_amount | u64 | 72 | 8 |
| output_mint | pubkey | 80 | 32 |
| output_amount | u64 | 112 | 8 |
Anchor programs emit events in one of two ways. With emit! the event is written to the transaction logs as Program data: <base64>; the decoded bytes are the 8-byte discriminator above followed by the Borsh-encoded fields. With emit_cpi! the program calls itself and the event is in that inner instruction's data, which starts with the 8-byte tag 0xe445a52e51cb9a1d, then the discriminator and the fields. Logs can be truncated on busy transactions; inner-instruction data is not. The decoder below accepts both forms. How to decode Anchor events.
Decoding runs on Rugsight's server against the bundled snapshot. Nothing is fetched from the chain. Paste public account data only; never paste a private key or seed phrase.
Jupiter Aggregator v6 instructions · Explain a transaction
Data: solana-idls@1.2.1 (MIT, © Obsidian Protocol) and SPL Token / Token-2022 state layouts (Apache-2.0), snapshot 2026-11-17. Programs can upgrade and an IDL snapshot can lag the deployed program, so check important offsets against current account data.