requestDynamic<RESULT, SERVICERESPONSE> method
Future<SERVICERESPONSE>
requestDynamic<RESULT, SERVICERESPONSE>(
- BaseServiceRequest<
RESULT, SERVICERESPONSE, BlockFrostRequestDetails> request, { - 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<SERVICERESPONSE> requestDynamic<RESULT, SERVICERESPONSE>(
BaseServiceRequest<RESULT, SERVICERESPONSE, BlockFrostRequestDetails>
request,
{Duration? timeout}) async {
final id = ++_id;
final params = request.buildRequest(id);
final response =
await rpc.doRequest<SERVICERESPONSE>(params, timeout: timeout);
return _findError(params: params, response: response);
}