WalletConnectManager

object WalletConnectManager : CustomKoinComponent, CoroutineScope

A WalletConnect V1 compatibility support class. Use this, if you want to connect the verification flow to a wallet through WalletConnect

Functions

Link copied to clipboard
suspend fun checkOldConnection()
Link copied to clipboard
fun connectWallet()

Starts connection process to a wallet via WalletConnect. If the users phone has multiple wallets installed, a prompt will be presented where the one to use needs to be selected.

Link copied to clipboard
open override fun getKoin(): Koin
Link copied to clipboard
fun startListening()

Starts a new WalletConnectSession and sets a callback to listen to its state changes.

Link copied to clipboard
fun stopListening()

Properties

Link copied to clipboard
open override val coroutineContext: CoroutineContext
Link copied to clipboard
val sessionsState: Flow<Resource<WalletConnectSession>>

A hot flow on which the results of the wallet connections are emitted.

Link copied to clipboard
val wcURI: StateFlow<String?>

A hot flow that emits session URIs on which the WalletConnect component is currently awaiting new connections.