Solana IDL reference › Meteora CP AMM (DAMM V2) › EvtSwap2

EvtSwap2 event

Meteora CP AMM (DAMM V2) event. Program ID cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG. Data starts with the 8-byte event discriminator, published in the IDL.

Discriminator (published in the IDL)

hex 0xbd4233a826507599

bytes [189, 66, 51, 168, 38, 80, 117, 153]

base58 Yf3e4yboVma

Fields (offsets include the 8-byte discriminator)

FieldTypeOffsetSize
poolpubkey832
trade_directionu8401
collect_fee_modeu8411
has_referralbool421
paramsSwapParameters24317
amount_0u64438
amount_1u64518
swap_modeu8591
swap_resultSwapResult26080
included_fee_input_amountu64608
excluded_fee_input_amountu64688
amount_leftu64768
output_amountu64848
next_sqrt_priceu1289216
trading_feeu641088
protocol_feeu641168
partner_feeu641248
referral_feeu641328
included_transfer_fee_amount_inu641408
included_transfer_fee_amount_outu641488
excluded_transfer_fee_amount_outu641568
current_timestampu641648
reserve_a_amountu641728
reserve_b_amountu641808

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 Meteora CP AMM (DAMM V2) events

Meteora CP AMM (DAMM V2) 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.