createInstance static method

Future<ReownSignClient> createInstance({
  1. required String projectId,
  2. String relayUrl = ReownConstants.DEFAULT_RELAY_URL,
  3. required PairingMetadata metadata,
  4. bool memoryStore = false,
  5. LogLevel logLevel = LogLevel.nothing,
})

Implementation

static Future<ReownSignClient> createInstance({
  required String projectId,
  String relayUrl = ReownConstants.DEFAULT_RELAY_URL,
  required PairingMetadata metadata,
  bool memoryStore = false,
  LogLevel logLevel = LogLevel.nothing,
}) async {
  final client = ReownSignClient(
    core: ReownCore(
      projectId: projectId,
      relayUrl: relayUrl,
      memoryStore: memoryStore,
      logLevel: logLevel,
    ),
    metadata: metadata,
  );
  await client.init();

  return client;
}