Struct ethcontract::prelude::Web3
source · pub struct Web3<T>where
T: Transport,{ /* private fields */ }Expand description
Web3 wrapper for all namespaces
Implementations§
source§impl<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
) -> Result<(), Error>
pub async fn wait_for_confirmations<F, V>( &self, poll_interval: Duration, confirmations: usize, check: V ) -> Result<(), Error>
Should be used to wait for confirmations
sourcepub async fn send_transaction_with_confirmation(
&self,
tx: TransactionRequest,
poll_interval: Duration,
confirmations: usize
) -> Result<Receipt, Error>
pub async fn send_transaction_with_confirmation( &self, tx: TransactionRequest, poll_interval: Duration, confirmations: usize ) -> Result<Receipt, Error>
Sends transaction and returns future resolved after transaction is confirmed
source§impl<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> Freeze for Web3<T>where
T: Freeze,
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§
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