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