[−][src]Struct web3::api::Web3
Web3
wrapper for all namespaces
Implementations
impl<T: Transport> Web3<T>
[src]
pub fn new(transport: T) -> Self
[src]
Create new Web3
with given transport
pub fn transport(&self) -> &T
[src]
Borrows a transport.
pub fn api<A: Namespace<T>>(&self) -> A
[src]
Access methods from custom namespace
pub fn accounts(&self) -> Accounts<T>
[src]
Access methods from accounts
namespace
pub fn eth(&self) -> Eth<T>
[src]
Access methods from eth
namespace
pub fn net(&self) -> Net<T>
[src]
Access methods from net
namespace
pub fn web3(&self) -> Web3<T>
[src]
Access methods from web3
namespace
pub fn eth_filter(&self) -> EthFilter<T>
[src]
Access filter methods from eth
namespace
pub fn parity(&self) -> Parity<T>
[src]
Access methods from parity
namespace
pub fn parity_accounts(&self) -> ParityAccounts<T>
[src]
Access methods from parity_accounts
namespace
pub fn parity_set(&self) -> ParitySet<T>
[src]
Access methods from parity_set
namespace
pub fn personal(&self) -> Personal<T>
[src]
Access methods from personal
namespace
pub fn trace(&self) -> Traces<T>
[src]
Access methods from trace
namespace
pub fn txpool(&self) -> Txpool<T>
[src]
Access methods from txpool
namespace
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>,
[src]
&'_ 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
pub async fn send_transaction_with_confirmation<'_>(
&'_ self,
tx: TransactionRequest,
poll_interval: Duration,
confirmations: usize
) -> Result<TransactionReceipt>
[src]
&'_ self,
tx: TransactionRequest,
poll_interval: Duration,
confirmations: usize
) -> Result<TransactionReceipt>
Sends transaction and returns future resolved after transaction is confirmed
pub async fn send_raw_transaction_with_confirmation<'_>(
&'_ self,
tx: Bytes,
poll_interval: Duration,
confirmations: usize
) -> Result<TransactionReceipt>
[src]
&'_ self,
tx: Bytes,
poll_interval: Duration,
confirmations: usize
) -> Result<TransactionReceipt>
Sends raw transaction and returns future resolved after transaction is confirmed
impl<T: DuplexTransport> Web3<T>
[src]
pub fn eth_subscribe(&self) -> EthSubscribe<T>
[src]
Access subscribe methods from eth
namespace
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Web3<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Web3<T> where
T: Send,
T: Send,
impl<T> Sync for Web3<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Web3<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Web3<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,