requestDynamic method

Future requestDynamic(
  1. String method,
  2. dynamic params, [
  3. Duration? timeout
])

Implementation

Future<dynamic> requestDynamic(String method, dynamic params,
    [Duration? timeout]) async {
  final id = ++_id;
  final requestParams = {
    "jsonrpc": "2.0",
    "method": method,
    "params": params,
    "id": id
  };
  final ETHRequestDetails request = ETHRequestDetails(
      id: id, method: method, params: StringUtils.fromJson(requestParams));
  final data = await rpc.call(request, timeout);
  return _findResult(data, request);
}