batchCall<T> method
Sends multiple RPC requests in a batch.
Implementation
Future<List<T>> batchCall<T>(List<RpcRequest> requests) async {
final responses = await transport.batchRequest(requests);
return responses.map((r) => r['result'] as T).toList();
}