createInstance static method

Future<AuthClient> createInstance({
  1. required String projectId,
  2. String relayUrl = WalletConnectConstants.DEFAULT_RELAY_URL,
  3. required PairingMetadata metadata,
  4. bool memoryStore = false,
  5. IHttpClient httpClient = const HttpWrapper(),
})

Implementation

static Future<AuthClient> createInstance({
  required String projectId,
  String relayUrl = WalletConnectConstants.DEFAULT_RELAY_URL,
  required PairingMetadata metadata,
  bool memoryStore = false,
  IHttpClient httpClient = const HttpWrapper(),
}) async {
  final client = AuthClient(
    core: Core(
      projectId: projectId,
      relayUrl: relayUrl,
      memoryStore: memoryStore,
      httpClient: httpClient,
    ),
    metadata: metadata,
  );
  await client.init();

  return client;
}