request<RESULT, SERVICERESPONSE> method

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

Sends a request to the cardano network (BlockFrost) using the specified request parameter.

The timeout parameter, if provided, sets the maximum duration for the request. Whatever is received will be returned

Implementation

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