Function extract_time_bounds

Source
pub fn extract_time_bounds(
    envelope: &TransactionEnvelope,
) -> Option<&TimeBounds>
Expand description

Extract time bounds from a transaction envelope

Handles both regular transactions (TxV0, Tx) and fee-bump transactions (extracts from inner transaction).

§Arguments

  • envelope - The transaction envelope to extract time bounds from

§Returns

Some(TimeBounds) if present, None otherwise