Struct starknet_accounts::Execution
source · pub struct Execution<'a, A> { /* private fields */ }Expand description
An intermediate type allowing users to optionally specify nonce and/or max_fee.
Implementations§
source§impl<'a, A> Execution<'a, A>
impl<'a, A> Execution<'a, A>
pub fn new(calls: Vec<Call>, account: &'a A) -> Self
pub fn nonce(self, nonce: FieldElement) -> Self
pub fn max_fee(self, max_fee: FieldElement) -> Self
pub fn fee_estimate_multiplier(self, fee_estimate_multiplier: f64) -> Self
sourcepub fn prepared(self) -> Result<PreparedExecution<'a, A>, NotPreparedError>
pub fn prepared(self) -> Result<PreparedExecution<'a, A>, NotPreparedError>
Calling this function after manually specifying nonce and max_fee turns Execution into
PreparedExecution. Returns Err if either field is None.
source§impl<'a, A> Execution<'a, A>where
A: ConnectedAccount + Sync,
impl<'a, A> Execution<'a, A>where
A: ConnectedAccount + Sync,
pub async fn estimate_fee( &self ) -> Result<FeeEstimate, AccountError<A::SignError>>
pub async fn simulate( &self, skip_validate: bool, skip_fee_charge: bool ) -> Result<SimulatedTransaction, AccountError<A::SignError>>
pub async fn send( &self ) -> Result<InvokeTransactionResult, AccountError<A::SignError>>
Trait Implementations§
Auto Trait Implementations§
impl<'a, A> RefUnwindSafe for Execution<'a, A>where
A: RefUnwindSafe,
impl<'a, A> Send for Execution<'a, A>where
A: Sync,
impl<'a, A> Sync for Execution<'a, A>where
A: Sync,
impl<'a, A> Unpin for Execution<'a, A>
impl<'a, A> UnwindSafe for Execution<'a, A>where
A: RefUnwindSafe,
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
Mutably borrows from an owned value. Read more