createInstance static method

Future<AuthClient> createInstance({
  1. required String projectId,
  2. String relayUrl = WalletConnectConstants.DEFAULT_RELAY_URL,
  3. required PairingMetadata metadata,
  4. IStore<Map<String, dynamic>>? store,
  5. IHttpClient httpClient = const HttpWrapper(),
})

Implementation

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

  return client;
}