localPeerId method

Future<String> localPeerId()

Returns the base58-encoded PeerId of the node.

Implementation

Future<String> localPeerId() async {
  final response = await _provider.send('system_localPeerId', []);
  return response.result as String;
}