Struct starknet_accounts::PreparedDeclaration
source · pub struct PreparedDeclaration<'a, A> { /* private fields */ }Expand description
RawDeclaration but with an account associated.
Implementations§
source§impl<'a, A> PreparedDeclaration<'a, A>where
A: Account,
impl<'a, A> PreparedDeclaration<'a, A>where
A: Account,
sourcepub fn transaction_hash(&self, query_only: bool) -> FieldElement
pub fn transaction_hash(&self, query_only: bool) -> FieldElement
Locally calculates the hash of the transaction to be sent from this declaration given the parameters.
source§impl<'a, A> PreparedDeclaration<'a, A>where
A: ConnectedAccount,
impl<'a, A> PreparedDeclaration<'a, A>where
A: ConnectedAccount,
pub async fn send( &self ) -> Result<DeclareTransactionResult, AccountError<A::SignError>>
pub async fn get_declare_request( &self, query_only: bool ) -> Result<BroadcastedDeclareTransactionV2, AccountError<A::SignError>>
Trait Implementations§
Auto Trait Implementations§
impl<'a, A> RefUnwindSafe for PreparedDeclaration<'a, A>where
A: RefUnwindSafe,
impl<'a, A> Send for PreparedDeclaration<'a, A>where
A: Sync,
impl<'a, A> Sync for PreparedDeclaration<'a, A>where
A: Sync,
impl<'a, A> Unpin for PreparedDeclaration<'a, A>
impl<'a, A> UnwindSafe for PreparedDeclaration<'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