DappEvent

sealed interface DappEvent

An event pushed from wallet to dApp, as a JSON-RPC notification.

The set is exactly the three event methods in OpenRPC 0.5.0. Note there is no statusChanged — it appears in some prose descriptions of this protocol but not in the document, which was checked. Status is polled via DappMethod.STATUS.

Inheritors

Types

Link copied to clipboard
data class AccountsChanged(val accounts: List<DappWallet>) : DappEvent

The set of accounts the dApp may use changed. accounts is the whole new list, not a delta — empty after a disconnect.

Link copied to clipboard
data class MessageSignature(val signature: MessageSignatureEvent) : DappEvent

A signMessage request moved to a new lifecycle state.

Link copied to clipboard
data class TxChanged(val tx: TxChangedEvent) : DappEvent

A submission moved to a new lifecycle state.