pub trait JsonRpcProviderType<T: Target>: ProviderType<T> {
// Required methods
fn batch<U: DeserializeOwned>(
&self,
targets: Vec<T>,
) -> impl Future<Output = Result<Vec<JsonRpcResult<U>>, JsonRpcError>>;
fn batch_chunk_by<U: DeserializeOwned>(
&self,
targets: Vec<T>,
chunk_size: usize,
) -> impl Future<Output = Result<Vec<JsonRpcResult<U>>, JsonRpcError>>;
}Required Methods§
sourcefn batch<U: DeserializeOwned>(
&self,
targets: Vec<T>,
) -> impl Future<Output = Result<Vec<JsonRpcResult<U>>, JsonRpcError>>
fn batch<U: DeserializeOwned>( &self, targets: Vec<T>, ) -> impl Future<Output = Result<Vec<JsonRpcResult<U>>, JsonRpcError>>
batch isomorphic JSON-RPC requests
fn batch_chunk_by<U: DeserializeOwned>( &self, targets: Vec<T>, chunk_size: usize, ) -> impl Future<Output = Result<Vec<JsonRpcResult<U>>, JsonRpcError>>
Object Safety§
This trait is not object safe.