pub struct TransactionGroup { /* private fields */ }Expand description
Transaction Group.
Implementations§
Source§impl TransactionGroup
impl TransactionGroup
Sourcepub fn with_options_and_luts(
options: TransactionGroupOptions,
luts: AddressLookupTables,
) -> TransactionGroup
pub fn with_options_and_luts( options: TransactionGroupOptions, luts: AddressLookupTables, ) -> TransactionGroup
Create with the given TransactionGroupOptions and AddressLookupTables.
Sourcepub fn validate_instruction_group(
&self,
group: &ParallelGroup,
) -> Result<(), Error>
pub fn validate_instruction_group( &self, group: &ParallelGroup, ) -> Result<(), Error>
Returns Ok if the given ParallelGroup can be added without error.
Sourcepub fn add(
&mut self,
group: impl Into<ParallelGroup>,
) -> Result<&mut TransactionGroup, Error>
pub fn add( &mut self, group: impl Into<ParallelGroup>, ) -> Result<&mut TransactionGroup, Error>
Add a ParallelGroup.
Sourcepub fn optimize(&mut self, allow_payer_change: bool) -> &mut TransactionGroup
pub fn optimize(&mut self, allow_payer_change: bool) -> &mut TransactionGroup
Optimize the transactions by repacking instructions to maximize space efficiency.
Sourcepub fn to_transactions<'a, C>(
&'a self,
signers: &'a TransactionSigners<C>,
recent_blockhash: Hash,
allow_partial_sign: bool,
) -> TransactionGroupIter<'a, C, fn(&VersionedMessage) -> Result<(), Error>>
pub fn to_transactions<'a, C>( &'a self, signers: &'a TransactionSigners<C>, recent_blockhash: Hash, allow_partial_sign: bool, ) -> TransactionGroupIter<'a, C, fn(&VersionedMessage) -> Result<(), Error>>
Build transactions.
Sourcepub fn to_transactions_with_options<'a, C, F>(
&'a self,
signers: &'a TransactionSigners<C>,
recent_blockhash: Hash,
allow_partial_sign: bool,
compute_budget: ComputeBudgetOptions,
before_sign: F,
) -> TransactionGroupIter<'a, C, F>
pub fn to_transactions_with_options<'a, C, F>( &'a self, signers: &'a TransactionSigners<C>, recent_blockhash: Hash, allow_partial_sign: bool, compute_budget: ComputeBudgetOptions, before_sign: F, ) -> TransactionGroupIter<'a, C, F>
Build transactions.
Sourcepub fn options(&self) -> &TransactionGroupOptions
pub fn options(&self) -> &TransactionGroupOptions
Returns the options.
Sourcepub fn estimate_execution_fee(
&self,
compute_unit_price_micro_lamports: Option<u64>,
compute_unit_min_priority_lamports: Option<u64>,
) -> u64
pub fn estimate_execution_fee( &self, compute_unit_price_micro_lamports: Option<u64>, compute_unit_min_priority_lamports: Option<u64>, ) -> u64
Estimates the execution fee of the result transaction.
Sourcepub fn groups(&self) -> &[ParallelGroup]
pub fn groups(&self) -> &[ParallelGroup]
Returns ParallelGroups.
Sourcepub fn luts(&self) -> &AddressLookupTables
pub fn luts(&self) -> &AddressLookupTables
Returns Address Lookup Tables.
Trait Implementations§
Source§impl Clone for TransactionGroup
impl Clone for TransactionGroup
Source§fn clone(&self) -> TransactionGroup
fn clone(&self) -> TransactionGroup
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransactionGroup
impl Debug for TransactionGroup
Source§impl Default for TransactionGroup
impl Default for TransactionGroup
Source§fn default() -> TransactionGroup
fn default() -> TransactionGroup
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TransactionGroup
impl !RefUnwindSafe for TransactionGroup
impl !Send for TransactionGroup
impl !Sync for TransactionGroup
impl Unpin for TransactionGroup
impl !UnwindSafe for TransactionGroup
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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