indexer method

  1. @override
Future<Map<String, dynamic>> indexer({
  1. required String ledger,
  2. required String path,
})

Proxies the requested path to the Indexer v2 API. Is limited to endpoints made available by the API server. The API backend may be configured by advanced users and is not guaranteed to respond as expected.

Implementation

@override
Future<Map<String, dynamic>> indexer({
  required String ledger,
  required String path,
}) async {
  Completer<Map<String, dynamic>> c = Completer();
  promiseToFuture(
    algosigner.indexer(algosigner.IndexerOptions(
      ledger: ledger,
      path: path,
    )),
  )
      .then((value) => c.complete(Map<String, dynamic>.from(convert(value))))
      .onError((error, stackTrace) => c.completeError(_handleError(error)));

  return c.future;
}