createInstance static method

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

Implementation

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

  return client;
}