createInstance static method
Future<Web3App>
createInstance({
- required String projectId,
- String relayUrl = WalletConnectConstants.DEFAULT_RELAY_URL,
- required PairingMetadata metadata,
- IStore<
Map< ? store,String, dynamic> > - LogLevel logLevel = LogLevel.nothing,
- HttpWrapper httpClient = const HttpWrapper(),
Implementation
static Future<Web3App> createInstance({
required String projectId,
String relayUrl = WalletConnectConstants.DEFAULT_RELAY_URL,
required PairingMetadata metadata,
IStore<Map<String, dynamic>>? store,
LogLevel logLevel = LogLevel.nothing,
HttpWrapper httpClient = const HttpWrapper(),
}) async {
final client = Web3App(
core: Core(
projectId: projectId,
relayUrl: relayUrl,
store: store,
logLevel: logLevel,
httpClient: httpClient,
),
metadata: metadata,
);
await client.init();
return client;
}