pub struct PreparedDeclarationV3<'a, A> { /* private fields */ }Expand description
RawDeclarationV3 but with an account associated.
Implementations§
Source§impl<A> PreparedDeclarationV3<'_, A>where
A: Account,
impl<A> PreparedDeclarationV3<'_, A>where
A: Account,
Sourcepub fn transaction_hash(&self, query_only: bool) -> Felt
pub fn transaction_hash(&self, query_only: bool) -> Felt
Locally calculates the hash of the transaction to be sent from this declaration given the parameters.
Source§impl<A> PreparedDeclarationV3<'_, A>where
A: ConnectedAccount,
impl<A> PreparedDeclarationV3<'_, A>where
A: ConnectedAccount,
Sourcepub async fn send(
&self,
) -> Result<DeclareTransactionResult, AccountError<A::SignError>>
pub async fn send( &self, ) -> Result<DeclareTransactionResult, AccountError<A::SignError>>
Signs and broadcasts the transaction to the network.
Sourcepub async fn get_declare_request(
&self,
query_only: bool,
skip_signature: bool,
) -> Result<BroadcastedDeclareTransactionV3, AccountError<A::SignError>>
pub async fn get_declare_request( &self, query_only: bool, skip_signature: bool, ) -> Result<BroadcastedDeclareTransactionV3, AccountError<A::SignError>>
Get the broadcasted declare transaction request.
Trait Implementations§
Auto Trait Implementations§
impl<'a, A> Freeze for PreparedDeclarationV3<'a, A>
impl<'a, A> RefUnwindSafe for PreparedDeclarationV3<'a, A>where
A: RefUnwindSafe,
impl<'a, A> Send for PreparedDeclarationV3<'a, A>where
A: Sync,
impl<'a, A> Sync for PreparedDeclarationV3<'a, A>where
A: Sync,
impl<'a, A> Unpin for PreparedDeclarationV3<'a, A>
impl<'a, A> UnwindSafe for PreparedDeclarationV3<'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