DappApproval

sealed interface DappApproval

The user's answer. Anything other than Approved becomes a 4001.

Inheritors

Types

Link copied to clipboard
data class Approved(val accounts: List<DappWallet> = emptyList()) : DappApproval

Approved. For a DappApprovalRequest.Connection, accounts is the subset the user chose to share — an empty list is a rejection, not an approval of nothing.

Link copied to clipboard
data class Rejected(val reason: String = "User rejected the request") : DappApproval

Declined. reason goes back to the dApp as the 4001 error message.