Struct ethcontract::prelude::Web3
source · [−]pub struct Web3<T>where
T: Transport,{ /* private fields */ }Expand description
Web3 wrapper for all namespaces
Implementations
sourceimpl<T> Web3<T>where
T: Transport,
impl<T> Web3<T>where
T: Transport,
sourcepub fn eth_filter(&self) -> EthFilter<T>
pub fn eth_filter(&self) -> EthFilter<T>
Access filter methods from eth namespace
sourcepub fn parity_accounts(&self) -> ParityAccounts<T>
pub fn parity_accounts(&self) -> ParityAccounts<T>
Access methods from parity_accounts namespace
sourcepub fn parity_set(&self) -> ParitySet<T>
pub fn parity_set(&self) -> ParitySet<T>
Access methods from parity_set namespace
sourcepub async fn wait_for_confirmations<F, V>(
&self,
poll_interval: Duration,
confirmations: usize,
check: V
) -> impl Future<Output = Result<(), Error>>where
F: Future<Output = Result<Option<U64>, Error>>,
V: ConfirmationCheck<Check = F>,
pub async fn wait_for_confirmations<F, V>(
&self,
poll_interval: Duration,
confirmations: usize,
check: V
) -> impl Future<Output = Result<(), Error>>where
F: Future<Output = Result<Option<U64>, Error>>,
V: ConfirmationCheck<Check = F>,
Should be used to wait for confirmations
sourcepub async fn send_transaction_with_confirmation(
&self,
tx: TransactionRequest,
poll_interval: Duration,
confirmations: usize
) -> impl Future<Output = Result<Receipt, Error>>
pub async fn send_transaction_with_confirmation(
&self,
tx: TransactionRequest,
poll_interval: Duration,
confirmations: usize
) -> impl Future<Output = Result<Receipt, Error>>
Sends transaction and returns future resolved after transaction is confirmed
sourceimpl<T> Web3<T>where
T: DuplexTransport,
impl<T> Web3<T>where
T: DuplexTransport,
sourcepub fn eth_subscribe(&self) -> EthSubscribe<T>
pub fn eth_subscribe(&self) -> EthSubscribe<T>
Access subscribe methods from eth namespace
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Web3<T>where
T: RefUnwindSafe,
impl<T> Send for Web3<T>where
T: Send,
impl<T> Sync for Web3<T>where
T: Sync,
impl<T> Unpin for Web3<T>where
T: Unpin,
impl<T> UnwindSafe for Web3<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more