resolveIPNS method

Future<String> resolveIPNS(
  1. String name
)

Resolve IPNS name to CID

Implementation

Future<String> resolveIPNS(String name) async {
  try {
    final dhtHandler = _container.get<DHTHandler>();
    final cid = await dhtHandler.resolveIPNS(name);
    return cid;
  } catch (e) {
    _logger.error('Failed to resolve IPNS: $e');
    rethrow;
  }
}