pub struct Web3<T: Transport> { /* private fields */ }
Expand description
Web3
wrapper for all namespaces
Implementations§
source§impl<T: Transport> Web3<T>
impl<T: Transport> Web3<T>
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<()>where
F: Future<Output = Result<Option<U64>>>,
V: ConfirmationCheck<Check = F>,
pub async fn wait_for_confirmations<F, V>( &self, poll_interval: Duration, confirmations: usize, check: V ) -> Result<()>where F: Future<Output = Result<Option<U64>>>, 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
) -> Result<TransactionReceipt>
pub async fn send_transaction_with_confirmation( &self, tx: TransactionRequest, poll_interval: Duration, confirmations: usize ) -> Result<TransactionReceipt>
Sends transaction and returns future resolved after transaction is confirmed
sourcepub async fn send_raw_transaction_with_confirmation(
&self,
tx: Bytes,
poll_interval: Duration,
confirmations: usize
) -> Result<TransactionReceipt>
pub async fn send_raw_transaction_with_confirmation( &self, tx: Bytes, poll_interval: Duration, confirmations: usize ) -> Result<TransactionReceipt>
Sends raw transaction and returns future resolved after transaction is confirmed
source§impl<T: DuplexTransport> Web3<T>
impl<T: DuplexTransport> Web3<T>
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§
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