Trade Log
Instruction data (ABI)
pub struct TradeLogData {
pub pool: Pubkey,
pub trader: Pubkey,
pub base_mint: Pubkey,
pub quote_mint: Pubkey,
/// Quote in (e.g., lamports or WSOL base units) charged by the pool for this trade
pub base_amount: u64,
/// Base tokens sent out to the trader (raw units)
pub quote_amount: u64,
/// Fees (quote units unless otherwise documented)
pub creator_fee: u64,
pub protocol_fee: u64,
pub lp_fee: u64,
/// true = buy, false = sell
pub is_buy: bool,
/// Balances around trade (pool vault balances, not "virtual" unless stated)
pub base_balance_after: u64,
pub quote_balance_after: u64,
pub base_balance_before: u64,
pub quote_balance_before: u64,
/// Unix timestamp (seconds)
pub timestamp: i64,
}Where to find it (indexer checklist)
Suggested validations (indexer)
Last updated