Solana IDL reference › PumpSwap AMM › BuyEvent

BuyEvent event

PumpSwap AMM event. Program ID pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA. Data starts with the 8-byte event discriminator, published in the IDL.

Discriminator (published in the IDL)

hex 0x67f4521f2cf57777

bytes [103, 244, 82, 31, 44, 245, 119, 119]

base58 JPVHaNesDB4

Fields (offsets include the 8-byte discriminator)

FieldTypeOffsetSize
timestampi6488
base_amount_outu64168
max_quote_amount_inu64248
user_base_token_reservesu64328
user_quote_token_reservesu64408
pool_base_token_reservesu64488
pool_quote_token_reservesu64568
quote_amount_inu64648
lp_fee_basis_pointsu64728
lp_feeu64808
protocol_fee_basis_pointsu64888
protocol_feeu64968
quote_amount_in_with_lp_feeu641048
user_quote_amount_inu641128
poolpubkey12032
userpubkey15232
user_base_token_accountpubkey18432
user_quote_token_accountpubkey21632
protocol_fee_recipientpubkey24832
protocol_fee_recipient_token_accountpubkey28032
coin_creatorpubkey31232
coin_creator_fee_basis_pointsu643448
coin_creator_feeu643528
track_volumeOption<bool>360varies
total_unclaimed_tokensOption<u64>variesvaries
total_claimed_tokensOption<u64>variesvaries
current_sol_volumeOption<u64>variesvaries
last_update_timestampOption<i64>variesvaries
min_base_amount_outOption<u64>variesvaries
ix_nameOption<string>variesvaries

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 PumpSwap AMM events

PumpSwap AMM 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.