pub struct TransactionApi { /* private fields */ }
Implementations§
Source§impl TransactionApi
impl TransactionApi
pub fn new(client: SignerClient) -> Self
pub async fn get_transaction(&self, tx_hash: &str) -> Result<Transaction>
pub async fn get_transactions( &self, address: &str, page: Option<u32>, limit: Option<u32>, ) -> Result<Vec<Transaction>>
pub async fn get_block(&self, block_number: u64) -> Result<Block>
pub async fn get_latest_block(&self) -> Result<Block>
pub async fn wait_for_confirmation( &self, tx_hash: &str, required_confirmations: u32, ) -> Result<Transaction>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TransactionApi
impl !RefUnwindSafe for TransactionApi
impl Send for TransactionApi
impl Sync for TransactionApi
impl Unpin for TransactionApi
impl !UnwindSafe for TransactionApi
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
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