pub struct CreateSessionParams {
pub start_slot: u64,
pub end_slot: u64,
pub signer_filter: BTreeSet<Address>,
pub preload_programs: BTreeSet<Address>,
pub preload_account_bundles: Vec<String>,
pub send_summary: bool,
pub capacity_wait_timeout_secs: Option<u16>,
pub disconnect_timeout_secs: Option<u16>,
pub extra_compute_units: Option<u32>,
pub agents: Vec<AgentParams>,
}Expand description
Parameters required to start a new backtest session.
Fields§
§start_slot: u64First slot (inclusive) to replay.
end_slot: u64Last slot (inclusive) to replay.
signer_filter: BTreeSet<Address>Skip transactions signed by these addresses.
preload_programs: BTreeSet<Address>Programs to preload before executing.
preload_account_bundles: Vec<String>Account bundle IDs to preload before executing.
send_summary: boolWhen true, include a session summary with transaction statistics in client-facing
Completed responses. Summary generation remains enabled internally for metrics.
capacity_wait_timeout_secs: Option<u16>Maximum seconds to wait for ECS capacity-related startup retries before failing session creation. If not set (or 0), capacity errors fail immediately.
disconnect_timeout_secs: Option<u16>Maximum seconds to keep the session alive after the control websocket disconnects. If not set (or 0), the session tears down immediately on disconnect. Maximum value: 900 (15 minutes).
extra_compute_units: Option<u32>Extra compute units to add to each transaction’s SetComputeUnitLimit budget.
Useful when replaying with an account override whose program uses more CU than
the original, causing otherwise-healthy transactions to run out of budget.
Only applied when a SetComputeUnitLimit instruction is already present.
agents: Vec<AgentParams>Agent configurations to run as sidecars alongside this session.
Trait Implementations§
Source§impl Clone for CreateSessionParams
impl Clone for CreateSessionParams
Source§fn clone(&self) -> CreateSessionParams
fn clone(&self) -> CreateSessionParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more