Solana IDL reference › Jupiter Aggregator v4 › Swap

Swap event

Jupiter Aggregator v4 event. Program ID JUP4Fb2cqiRUcaTHdrPC8h2gNsA2ETXiPDD33WcGuJB. Data starts with the 8-byte event discriminator, computed with the standard Anchor rule: first 8 bytes of sha256("event:Swap").

Discriminator (computed with the standard Anchor rule: first 8 bytes of sha256("event:Swap"))

hex 0x516ce3becdd00ac4

bytes [81, 108, 227, 190, 205, 208, 10, 196]

base58 EcvpSC8svwu

Fields (offsets include the 8-byte discriminator)

FieldTypeOffsetSize
ammpubkey832
inputMintpubkey4032
inputAmountu64728
outputMintpubkey8032
outputAmountu641128

Where this event appears

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.

Decode this event

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.

Other Jupiter Aggregator v4 events

Jupiter Aggregator v4 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.