Skip to main content

Module transaction_route

Module transaction_route 

Source
Expand description

Opt-in instruction-level route inspection for RPC and Yellowstone transactions.

Keeps execution order, CPI positions, transfers, and unknown programs. A list of swaps is not assumed to be a linear route. Graduated StonkFun attribution requires pool identities established by the caller (e.g. from migration).

Structs§

InstructionPosition
RouteNativeTokenAction
RouteSwapLeg
RouteTokenTransfer
RouteUnknownInvocation
TransactionRoute

Enums§

NativeTokenAction
SwapProtocol

Functions§

analyze_rpc_transaction_routes
analyze_yellowstone_transaction_routes
Analyze instruction and transfer context without altering the normal event API. Unknown invocations and failed transaction status are preserved explicitly. graduated_stonkfun_pools must be verified pool identities, not all stock pairs.