IReownSignClient class abstract

Implementers

Constructors

IReownSignClient()

Properties

authKeys → IGenericStore<AuthPublicKey>
final
core → IReownCore
final
engine IReownSign
final
hashCode int
The hash code for this object.
no setterinherited
metadata → PairingMetadata
final
onProposalExpire → Event<SessionProposalEvent>
final
onSessionAuthRequest → Event<SessionAuthRequest>
final
onSessionAuthResponse → Event<SessionAuthResponse>
final
onSessionConnect → Event<SessionConnect>
final
onSessionDelete → Event<SessionDelete>
final
onSessionEvent → Event<SessionEvent>
final
onSessionExpire → Event<SessionExpire>
final
onSessionExtend → Event<SessionExtend>
final
onSessionPing → Event<SessionPing>
final
onSessionProposal → Event<SessionProposalEvent>
final
onSessionProposalError → Event<SessionProposalErrorEvent>
final
onSessionRequest → Event<SessionRequestEvent>
final
onSessionUpdate → Event<SessionUpdate>
final
pairings → IPairingStore
final
pairingTopics → IGenericStore<String>
final
pendingRequests → IGenericStore<SessionRequest>
final
proposals → IGenericStore<ProposalData>
final
protocol String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sessionAuthRequests → IGenericStore<PendingSessionAuthRequest>
final
sessions ISessions
final
version int
final

Methods

approve({required int id, required Map<String, Namespace> namespaces, Map<String, String>? sessionProperties, String? relayProtocol}) Future<ApproveResponse>
approveSessionAuthenticate({required int id, List<Cacao>? auths}) Future<ApproveResponse>
authenticate({required SessionAuthRequestParams params, String? walletUniversalLink, String? pairingTopic, List<List<String>>? methods}) Future<SessionAuthRequestResponse>
connect({Map<String, RequiredNamespace>? requiredNamespaces, Map<String, RequiredNamespace>? optionalNamespaces, Map<String, String>? sessionProperties, String? pairingTopic, List<Relay>? relays, List<List<String>>? methods}) Future<ConnectResponse>
disconnect({required String topic, required ReownSignError reason}) Future<void>
dispatchEnvelope(String url) Future<void>
emit({required String topic, required String chainId, required SessionEventParams event}) Future<void>
extend({required String topic}) Future<void>
find({required Map<String, RequiredNamespace> requiredNamespaces}) SessionData?
formatAuthMessage({required String iss, required CacaoRequestPayload cacaoPayload}) String
getActiveSessions() Map<String, SessionData>
getPendingSessionAuthRequests() Map<int, PendingSessionAuthRequest>
getPendingSessionProposals() Map<String, ProposalData>
getPendingSessionRequests() Map<String, SessionRequest>
getSessionsForPairing({required String pairingTopic}) Map<String, SessionData>
init() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pair({required Uri uri}) Future<PairingInfo>
ping({required String topic}) Future<void>
redirectToDapp({required String topic, required Redirect? redirect}) Future<bool>
redirectToWallet({required String topic, required Redirect? redirect}) Future<bool>
registerAccount({required String chainId, required String accountAddress}) → void
Register accounts for a given namespace or chainId. Used to construct the Namespaces map for the session proposal. Each account must follow the namespace:chainId:address format or this will throw an error.
registerEventEmitter({required String chainId, required String event}) → void
Register event emitters for a given namespace or chainId Used to construct the Namespaces map for the session proposal
registerEventHandler({required String chainId, required String event, required dynamic handler(String, dynamic)?}) → void
registerRequestHandler({required String chainId, required String method, dynamic handler(String, dynamic)?}) → void
reject({required int id, required ReownSignError reason}) Future<void>
rejectSessionAuthenticate({required int id, required ReownSignError reason}) Future<void>
request({required String topic, required String chainId, required SessionRequestParams request}) Future
requestReadContract({required DeployedContract deployedContract, required String functionName, required String rpcUrl, EthereumAddress? sender, List parameters = const []}) Future<List>
requestWriteContract({required String topic, required String chainId, required DeployedContract deployedContract, required String functionName, required Transaction transaction, String? method, List parameters = const []}) Future
respond({required String topic, required JsonRpcResponse response}) Future<void>
toString() String
A string representation of this object.
inherited
update({required String topic, required Map<String, Namespace> namespaces}) Future<void>
validateSignedCacao({required Cacao cacao, required String projectId}) Future<bool>

Operators

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