Trait ic_web3_rs::Transport
source · pub trait Transport: Debug + Clone {
type Out: Future<Output = Result<Value>>;
// Required methods
fn prepare(&self, method: &str, params: Vec<Value>) -> (RequestId, Call);
fn send(
&self,
id: RequestId,
request: Call,
options: CallOptions
) -> Self::Out;
// Provided methods
fn execute(
&self,
method: &str,
params: Vec<Value>,
options: CallOptions
) -> Self::Out { ... }
fn set_max_response_bytes(&mut self, bytes: u64) { ... }
}
Expand description
Transport implementation
Required Associated Types§
Required Methods§
Provided Methods§
sourcefn execute(
&self,
method: &str,
params: Vec<Value>,
options: CallOptions
) -> Self::Out
fn execute( &self, method: &str, params: Vec<Value>, options: CallOptions ) -> Self::Out
Execute remote method with given parameters.
sourcefn set_max_response_bytes(&mut self, bytes: u64)
fn set_max_response_bytes(&mut self, bytes: u64)
set the max response bytes, do nothing by default