listLedgers method
Retrieves a list of available ledgers from the directory service.
This method makes a gRPC call to the directory service to list all available ledgers.
Returns:
Implementation
Future<List<Ledger>> listLedgers() async =>
(await _client.listLedgers(Empty())).ledgers;