removeReservedPeer method

Future<String?> removeReservedPeer(
  1. String peerId
)

Remove a reserved peer. Returns the empty string or an error. The string should encode only the PeerId e.g. QmSk5HQbn6LhUwDiNMseVUjuRYhEtYj4aUZ6WfWoGURpdV.

unsafe: This method is only active with appropriate flags

Implementation

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