Follow this guide to integrate Portal in your iOS app.
PortalSwift
package through Xcode:PortalSwift
https://github.com/portal-hq/PortalSwift
Portal
in your application, create a new instance of the Portal
class included in the package dependency you added. You can provide your Client API Key as the apiKey
argument during initialization. rpcConfig
is a map of CAIP-2 Chain IDs to their respective RPC URLs.
We can now create an instance of the Portal
class. Below is an example of how you can do this:
SESSION_EXPIRED
in the SDK methods, which you can use as an indicator to refresh your CST.