Function analyze_tx

Source
pub fn analyze_tx(
    tx: &TxFormat<'_>,
    swap_tx_sender: &Sender<SwapTx>,
    token_create_sender: &Sender<TokenCreation>,
    block_time: u64,
    slot: u64,
    index: u64,
)
Expand description

Analyze raw Solana transactions and extract swaps and token creations. This is the main entry point for transaction decoding. It accepts transactions from multiple sources (Archive, gRPC, JSON RPC) using the TxFormat enum and normalizes them into a common format before processing, writing stadardized output to channels swap_tx_sender and token_create_sender. Failed transactions are skipped and not analyzed. TODO support can be added for add/remove liquidity and bubblemapping with links.