pub trait Caller<T, Params, Resp>: Send + Sync{
// Required method
fn call(
&self,
method: Cow<'static, str>,
params: Params,
) -> TransportResult<ProviderCall<T, Value, Resp>>;
}
Expand description
Trait that helpes convert EthCall
into a ProviderCall
.
Required Methods§
sourcefn call(
&self,
method: Cow<'static, str>,
params: Params,
) -> TransportResult<ProviderCall<T, Value, Resp>>
fn call( &self, method: Cow<'static, str>, params: Params, ) -> TransportResult<ProviderCall<T, Value, Resp>>
Method that needs to be implemented to convert to a ProviderCall
.
This method handles serialization of the params and sends the request to relevant data
source and returns a ProviderCall
.