redirect
field in the AppMetadata
object is mandatory. Ensure that the provided value matches your app’s URL scheme to prevent redirection-related issues.
Once you’re done, in order to initialize a client just call a configure
method from the WalletKit instance wrapper
AutoNamespaces
is a helper utility that greatly reduces the complexity of parsing the required and optional namespaces. It accepts as parameters a session proposal along with your user’s chains/methods/events/accounts and returns ready-to-use SessionNamespace
object.
sessionsPublishers
will publish a Session
Session
object represents an active session connection with a dapp. It contains dapp’s metadata (that you may want to use for displaying an active session to the user), namespaces, and expiry date. There is also a topic property that you will use for linking requests with related sessions.
You can always query settled sessions from the client later with:
pair
method:
Session.Proposal
object conveys set of required and optional ProposalNamespaces
that contains blockchains methods and events. Dapp requests with methods and wallet will emit events defined in namespaces.
VerifyContext
provides a domain verification information about Session.Proposal
and Request
. It consists of origin of a Dapp from where the request has been sent, validation enum that says whether origin is unknown, valid or invalid and verify URL server.
To enable or disable verification find the Verify SDK toggle in your project dashboard.
Account
type meets the criteria.
WalletKit
instance receives requests from a peer it will publish a related event. Set a subscription to handle them.
To track sessions subscribe to sessionsPublisher
publisher
AnyCodable
type. An expected object can be derived as follows:
disconnect
method.
register
method and pass the device token received from the didRegisterForRemoteNotificationsWithDeviceToken
method in the AppDelegate
.