pub trait Caller<T, N, Resp>: Send + Sync{
// Required methods
fn call(
&self,
params: EthCallParams<'_, N>,
) -> TransportResult<ProviderCall<T, EthCallParams<'static, N>, Resp>>;
fn estimate_gas(
&self,
params: EthCallParams<'_, N>,
) -> TransportResult<ProviderCall<T, EthCallParams<'static, N>, Resp>>;
}
Expand description
Trait that helpes convert EthCall
into a ProviderCall
.
Required Methods§
Sourcefn call(
&self,
params: EthCallParams<'_, N>,
) -> TransportResult<ProviderCall<T, EthCallParams<'static, N>, Resp>>
fn call( &self, params: EthCallParams<'_, N>, ) -> TransportResult<ProviderCall<T, EthCallParams<'static, N>, Resp>>
Method that needs to be implemented to convert to a ProviderCall
.
This method sends the request to relevant data source and returns a ProviderCall
.
Sourcefn estimate_gas(
&self,
params: EthCallParams<'_, N>,
) -> TransportResult<ProviderCall<T, EthCallParams<'static, N>, Resp>>
fn estimate_gas( &self, params: EthCallParams<'_, N>, ) -> TransportResult<ProviderCall<T, EthCallParams<'static, N>, Resp>>
Method that needs to be implemented for estimating gas using “eth_estimateGas” for the transaction.