ConnectResult

data class ConnectResult(val isConnected: Boolean, val isNetworkConnected: Boolean, val reason: String? = null, val networkReason: String? = null, val userUrl: String? = null)

Result of DappMethod.CONNECT and DappMethod.IS_CONNECTED.

Two independent booleans, and they are genuinely independent: a dApp can be connected to the wallet while the wallet is not connected to a network. Report both honestly — collapsing them into one flag is what produces "connected" UIs that cannot submit anything.

Constructors

Link copied to clipboard
constructor(isConnected: Boolean, isNetworkConnected: Boolean, reason: String? = null, networkReason: String? = null, userUrl: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard