request<RESULT, SERVICERESPONSE> method

  1. @override
Future<RESULT> request<RESULT, SERVICERESPONSE>(
  1. BaseServiceRequest<RESULT, SERVICERESPONSE, EthereumRequestDetails> request, {
  2. Duration? timeout,
})
override

Sends a request to the ethereum network using the specified request parameter.

The timeout parameter, if provided, sets the maximum duration for the request.

Implementation

@override
Future<RESULT> request<RESULT, SERVICERESPONSE>(
    BaseServiceRequest<RESULT, SERVICERESPONSE, EthereumRequestDetails>
        request,
    {Duration? timeout}) async {
  final r = await requestDynamic(request, timeout: timeout);
  return request.onResonse(r);
}