Struct ic_web3_rs::api::Web3
source · 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> 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