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 set_max_response_bytes(&mut self, bytes: u64)
pub fn set_max_response_bytes(&mut self, bytes: u64)
set the max response bytes
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 send_transaction_with_confirmation(
&self,
tx: TransactionRequest,
poll_interval: Duration,
confirmations: usize,
options: CallOptions,
) -> Result<TransactionReceipt>
pub async fn send_transaction_with_confirmation( &self, tx: TransactionRequest, poll_interval: Duration, confirmations: usize, options: CallOptions, ) -> 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,
options: CallOptions,
) -> Result<TransactionReceipt>
pub async fn send_raw_transaction_with_confirmation( &self, tx: Bytes, poll_interval: Duration, confirmations: usize, options: CallOptions, ) -> Result<TransactionReceipt>
Sends raw transaction and returns future resolved after transaction is confirmed
Sourcepub async fn json_rpc_call(
&self,
body: &str,
options: CallOptions,
) -> Result<String>
pub async fn json_rpc_call( &self, body: &str, options: CallOptions, ) -> Result<String>
Call json rpc directly
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> 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