requestDynamic method
Sends a request to the blockfrost network using the specified request
parameter.
The timeout
parameter, if provided, sets the maximum duration for the request.
Whatever is received will be returned
Implementation
Future<dynamic> requestDynamic(BlockforestRequestParam request,
[Duration? timeout]) async {
final id = ++_id;
final params = request.toRequest(id);
final data = params.requestType == HTTPRequestType.post
? await rpc.post(params, timeout)
: await rpc.get(params, timeout);
_findError(data);
return data;
}