pub struct RpcSimulateBundleConfig {
pub pre_execution_accounts_configs: Vec<Option<RpcSimulateTransactionAccountsConfig>>,
pub post_execution_accounts_configs: Vec<Option<RpcSimulateTransactionAccountsConfig>>,
pub transaction_encoding: Option<UiTransactionEncoding>,
pub simulation_bank: Option<SimulationSlotConfig>,
pub skip_sig_verify: bool,
pub replace_recent_blockhash: bool,
}Fields§
§pre_execution_accounts_configs: Vec<Option<RpcSimulateTransactionAccountsConfig>>Per-tx pre-execution account snapshot hints. When provided MUST have
the same length as RpcBundleRequest.encoded_transactions. Omitting
the field (or sending an empty array) is allowed — the server treats
it as “no snapshots requested for any tx”, equivalent to sending
vec![None; bundle_len]. Mismatched non-empty lengths are rejected
with invalid_params.
post_execution_accounts_configs: Vec<Option<RpcSimulateTransactionAccountsConfig>>Per-tx post-execution account snapshot hints. Same shape and
“omitted = no snapshots” rules as pre_execution_accounts_configs.
transaction_encoding: Option<UiTransactionEncoding>Encoding the transactions are submitted in. Only Base64 is supported
— the server rejects any other value with invalid_params. Matches
Jito’s reference simulateBundle, which also enforces base64 only.
simulation_bank: Option<SimulationSlotConfig>Which bank to simulate against. Surfpool always treats this as
Tip-equivalent (the working SVM); accepted for API compatibility.
skip_sig_verify: boolSkip signature verification. Required when replace_recent_blockhash
is true (the resigned blockhash invalidates any pre-existing sig).
replace_recent_blockhash: boolReplace each tx’s recent blockhash with the bank’s current latest blockhash. Useful for replaying historical transactions.
Trait Implementations§
Source§impl Clone for RpcSimulateBundleConfig
impl Clone for RpcSimulateBundleConfig
Source§fn clone(&self) -> RpcSimulateBundleConfig
fn clone(&self) -> RpcSimulateBundleConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RpcSimulateBundleConfig
impl Debug for RpcSimulateBundleConfig
Source§impl Default for RpcSimulateBundleConfig
impl Default for RpcSimulateBundleConfig
Source§fn default() -> RpcSimulateBundleConfig
fn default() -> RpcSimulateBundleConfig
Source§impl<'de> Deserialize<'de> for RpcSimulateBundleConfig
impl<'de> Deserialize<'de> for RpcSimulateBundleConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for RpcSimulateBundleConfig
impl RefUnwindSafe for RpcSimulateBundleConfig
impl Send for RpcSimulateBundleConfig
impl Sync for RpcSimulateBundleConfig
impl Unpin for RpcSimulateBundleConfig
impl UnsafeUnpin for RpcSimulateBundleConfig
impl UnwindSafe for RpcSimulateBundleConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more