pub struct DiscoveryBatchEvent {
pub slot: u64,
pub batch_index: u32,
pub matched: Vec<DiscoveryFilter>,
pub transactions: Vec<EncodedBinary>,
pub transaction_indices: Vec<u32>,
}Expand description
Payload emitted when the session has discovered an upcoming batch that
matches one or more registered DiscoveryFilters from session creation
(for example, a batch containing a transaction that invokes a program of
interest). The (slot, batch_index) pair can be fed directly to
BacktestRequest::ContinueTo to pause immediately before the batch
executes. After each Continue / ContinueTo, the session emits the
next DiscoveryBatchEvent ahead of the next matching batch, enabling a
reactive “pause on every discovery” driver loop.
Fields§
§slot: u64§batch_index: u32§matched: Vec<DiscoveryFilter>Filters that matched this batch (always non-empty).
transactions: Vec<EncodedBinary>Encoded transactions in this batch that triggered the match. Each
entry carries the serialized VersionedTransaction bytes paired with
the encoding used.
transaction_indices: Vec<u32>Each of transactions’ index in its slot’s block, the index Solana reports for it. Empty
from a session that predates it.