Web3App class

Implemented types
Annotations
  • @Deprecated('walletconnect_flutter_v2 package is no longer maintened, please upgrade to reown_appkit. Read more at: https://docs.reown.com/advanced/walletconnect-deprecations#flutter')

Constructors

Web3App({required ICore core, required PairingMetadata metadata})

Properties

authEngine IAuthEngine
getter/setter pairoverride-getter
authKeys IGenericStore<AuthPublicKey>
no setteroverride
completeRequests IGenericStore<StoredCacao>
no setteroverride
core ICore
final
hashCode int
The hash code for this object.
no setterinherited
metadata PairingMetadata
final
onAuthResponse Event<AuthResponse>
---------- (DEPRECATED) AUTH ENGINE ----------///
no setteroverride
onProposalExpire Event<SessionProposalEvent>
no setteroverride
onSessionAuthResponse Event<SessionAuthResponse>
---------- ONE-CLICK AUTH SIGN ENGINE ----------///
no setteroverride
onSessionConnect Event<SessionConnect>
---------- SIGN ENGINE ----------///
no setteroverride
onSessionDelete Event<SessionDelete>
no setteroverride
onSessionEvent Event<SessionEvent>
no setteroverride
onSessionExpire Event<SessionExpire>
no setteroverride
onSessionExtend Event<SessionExtend>
no setteroverride
onSessionPing Event<SessionPing>
no setteroverride
onSessionUpdate Event<SessionUpdate>
no setteroverride
pairings IPairingStore
no setteroverride
pairingTopics IGenericStore<String>
no setteroverride
pendingRequests IGenericStore<SessionRequest>
no setteroverride
proposals IGenericStore<ProposalData>
no setteroverride
protocol String
---------- GENERIC ----------///
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sessions ISessions
no setteroverride
signEngine ISignEngine
getter/setter pairoverride-getter
version int
final

Methods

authenticate({required SessionAuthRequestParams params, String? pairingTopic, String? walletUniversalLink, List<List<String>>? methods = const [[MethodConstants.WC_SESSION_AUTHENTICATE]]}) Future<SessionAuthRequestResponse>
override
connect({Map<String, RequiredNamespace>? requiredNamespaces, Map<String, RequiredNamespace>? optionalNamespaces, Map<String, String>? sessionProperties, String? pairingTopic, List<Relay>? relays, List<List<String>>? methods = DEFAULT_METHODS}) Future<ConnectResponse>
override
disconnectSession({required String topic, required WalletConnectError reason}) Future<void>
override
dispatchEnvelope(String url) Future<void>
override
formatAuthMessage({required String iss, required CacaoRequestPayload cacaoPayload}) String
override
getActiveSessions() Map<String, SessionData>
override
getCompletedRequestsForPairing({required String pairingTopic}) Map<int, StoredCacao>
override
getPendingSessionProposals() Map<String, ProposalData>
override
getSessionsForPairing({required String pairingTopic}) Map<String, SessionData>
override
init() Future<void>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
ping({required String topic}) Future<void>
override
redirectToWallet({required String topic, required Redirect? redirect}) Future<bool>
override
registerEventHandler({required String chainId, required String event, void handler(String, dynamic)?}) → void
override
request({required String topic, required String chainId, required SessionRequestParams request}) Future
override
requestAuth({required AuthRequestParams params, String? pairingTopic, List<List<String>>? methods = DEFAULT_METHODS}) Future<AuthRequestResponse>
override
requestReadContract({required DeployedContract deployedContract, required String functionName, required String rpcUrl, EthereumAddress? sender, List parameters = const []}) Future<List>
override
requestWriteContract({required String topic, required String chainId, required DeployedContract deployedContract, required String functionName, required Transaction transaction, String? method, List parameters = const []}) Future
override
toString() String
A string representation of this object.
inherited
validateSignedCacao({required Cacao cacao, required String projectId}) Future<bool>
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

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

Constants

DEFAULT_METHODS → const List<List<String>>