icon

Help users understand what a wallet action will authorize

Security editorial team
Help users understand what a wallet action will authorize
  • Author:
  • Sunny Security Labs

    Security editorial team

A wallet approval button may represent a one-time transaction, a message signature or a permission that another party can use later. Use the application screen to tell the user what will happen before the wallet appears. A careful design identifies the account, network and relevant counterparties, and gives the user an opportunity to stop when those facts differ from their intent.

Make the requested action easy to inspect

Where your protocol and wallets support it, use structured typed data for signatures and label its important fields in understandable language. A typed-data domain helps distinguish the request's context. Your application or contract must still implement its intended rules for replay, expiry and scope. For token approvals, display the asset, amount or limit and the recipient of the spending authority. Give a reason if the workflow requires an enduring approval.

Handle changes before asking again

Review what the application does if the user changes accounts or networks while a prompt is open. Refresh the intended action and use a new confirmation when meaningful details changed. Give pending, confirmed, rejected and failed actions distinguishable states. If showing an estimated effect, explain when the estimate can change before execution.

Review with people who use different wallets

Walk through a routine action, a cancelled request and a case where a different network is selected. Verify the text displayed by the app and wallet, especially truncated fields and mobile layouts. Give support a process to investigate an unexpected approval using public transaction references and ordinary account identifiers. Recovery phrases and private keys should stay with the user. For any recurring permission, show users where they can inspect its current status and how to withdraw it.

Sources

Request a quote
Book a consultation