Struct stacks_rs::api::TransactionsApi
source · pub struct TransactionsApi<T: Network> { /* private fields */ }Implementations§
source§impl<T: Network> TransactionsApi<T>
impl<T: Network> TransactionsApi<T>
pub fn new(network: T) -> Self
sourcepub async fn broadcast_tx(
&self,
transaction: &StacksTransaction
) -> Result<String, Error>
pub async fn broadcast_tx( &self, transaction: &StacksTransaction ) -> Result<String, Error>
Broadcasts a transaction to the network & returns the transaction id.
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for TransactionsApi<T>
impl<T> Send for TransactionsApi<T>where
T: Send,
impl<T> Sync for TransactionsApi<T>where
T: Sync,
impl<T> Unpin for TransactionsApi<T>where
T: Unpin,
impl<T> !UnwindSafe for TransactionsApi<T>
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