requestDynamic<RESULT, SERVICERESPONSE> method
Future<SERVICERESPONSE>
requestDynamic<RESULT, SERVICERESPONSE>(
- BaseServiceRequest<
RESULT, SERVICERESPONSE, TronRequestDetails> request, { - Duration? timeout,
override
Sends a request to the tron 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
@override
Future<SERVICERESPONSE> requestDynamic<RESULT, SERVICERESPONSE>(
BaseServiceRequest<RESULT, SERVICERESPONSE, TronRequestDetails> request,
{Duration? timeout}) async {
final params = request.buildRequest(_id++);
final response =
await rpc.doRequest<SERVICERESPONSE>(params, timeout: timeout);
return response.getResult(params);
}