[][src]Struct web3::api::Web3

pub struct Web3<T: Transport> { /* fields omitted */ }

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]

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]

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]

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

impl<T: Clone + Transport> Clone for Web3<T>[src]

impl<T: Debug + Transport> Debug for Web3<T>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,