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