You press Deposit and your wallet opens a window asking you to approve a contract. You accept, return to the application and see a green check. Did the deposit happen, or did you only grant permission? If the interface cannot answer, the composition has left the action’s most important part unexplained.
A smart contract is a program with rules and state on a blockchain. The interface presents that state and lets people request changes. Users need to understand what they hold, what they are about to authorise and what has actually been confirmed. This is a design responsibility before it becomes a style choice.
The examples below are hypothetical and focus on Ethereum and the cited standards, checked on 27 October 2026. Other contracts and networks may use different mechanisms. Design must follow the actual implementation and its limits without suggesting that a clear presentation certifies contract security.
Start with the question the person is trying to answer
Someone wanting to deposit does not begin by looking for a function identifier. They want to know how much will leave the wallet, where it goes, which conditions they accept and when the assets will be available again. Organise information in that order while preserving access to technical details needed for verification.
On the first screen, distinguish available balance from deposited amounts and operations still being processed. Label approximate values in another currency as estimates and identify their source or update time. A euro equivalent does not make an asset a guaranteed euro amount.
I would avoid giving every number equal emphasis. The amount being entered should lead the composition; conditions capable of changing the decision belong nearby. A decorative chart should not push a withdrawal restriction into an obscure footnote.
Separate connection, permission and execution
Under ERC-20, approval allows another address to spend up to the authorised amount through the allowance mechanism. Approval does not, by itself, transfer that amount into a deposit. The interface must represent the operations the contract actually requires.
Imagine a demonstration application using two separate transactions: first approve a contract to spend 1.25 DEMO tokens, then request the deposit. DEMO is merely the illustrative name used here. This is neither an asset recommendation nor a description of an existing product.
| Step in this example | What the person should understand | State the interface should name |
|---|---|---|
| Connect wallet | Which account and network are in use | Wallet connected |
| Approve 1.25 DEMO | Which contract may spend, and how much | Approval confirmed; deposit not started |
| Request deposit | Amount and conditions of the operation | Deposit submitted; tracking progress |
| Verify execution and state | Whether the expected change occurred | Deposit confirmed under the stated policy |
Existing sufficient allowance can change the sequence. A combined operation needs an explanation matching that mechanism. Do not impose two steps as a visual convention or hide a step to make the experience seem shorter.
The permission summary should show the authorised amount, spender identity and accessible full address, token and network. A human-readable label supports recognition but should not remove the address. If the product offers approval above the amount needed, make that difference explicit before confirmation.
Where the operation requires a network fee, show its estimate separately from the token amount and identify the asset used to pay it. Do not add different units into a meaningless total. The application summary and wallet request should describe the same operation; an unexpected difference warrants reviewing the flow before continuing.
The signer workstation analysis examines the same instruction from the security side: checking the destination alone is insufficient if the request changes from a payment to a spending permission. Use that distinction when reviewing what the interface presents before signing.
A message signature can also have consequences
ERC-2612 allows allowance changes through a signed message subsequently submitted to the contract. Signing a message should therefore not automatically be presented as having no consequences for permissions.
Where this standard applies, explain the spender, amount and deadline for submitting the signed approval. That deadline does not automatically expire an allowance already created. Establish the contract’s semantics before writing the label.
A short sentence can orient the reader: This signature allows a spending approval to be created for the contract shown. Technical detail should remain available. Avoid a generic Continue button where you can name the action the person will confirm.
Also distinguish an application sign-in signature from token permission. The design team needs the implementation team to identify the request type and effects. A wallet window alone does not explain the meaning of the flow the application has designed.
Format amounts without erasing relevant precision
ERC-20 provides metadata such as decimals, but that method is optional. Do not assume every token uses eighteen decimals. Resolve token context and address before presenting the amount.
For a hypothetical six-decimal token, 1,250,000 base units represent 1.25 tokens: 1,250,000 ÷ 10⁶ = 1.25. The integer may be useful in technical details; the main field should show a unit people understand. Preserve exact calculations in implementation and avoid rounding an entered quantity into a different amount without explanation.
If the required precision is unavailable, show unavailability and prevent an ambiguous confirmation. An invented zero looks like a retrieved balance. Apply the same care to dates: identify the time zone where relevant and provide the actual date alongside relative descriptions such as in two hours.
Derive states from evidence
Ethereum’s transaction documentation distinguishes submission, inclusion in a block and progress towards finalisation. An animation should not replace that information or promise an exact network countdown.
While requesting wallet action, show Awaiting confirmation in your wallet. After submission, retain the transaction identifier and a link to an explorer for the correct network. Once there is a receipt, EIP-658 distinguishes success and failure of the top-level execution. That result still needs to be related to the requested operation: a successful approval remains different from a deposit.
Agree with engineering when the product displays confirmation and finalisation. If a receipt indicates success but the balance view has not updated, show that situation instead of repeating the request. Also indicate data freshness where the application relies on a service that organises data with a delay.
A failed query does not establish transaction failure. A request without a known outcome does not justify saying the money disappeared. Provide a way to resume tracking after reloading, and avoid encouraging another submission before clarifying the earlier operation.
Give rejection and context changes their own treatment
EIP-1193 identifies user rejection with code 4001 and defines account and network change events. Use those distinctions to write appropriate responses. Someone who declined in the wallet does not need the same instruction as someone whose network query stopped responding.
When account or network changes, reassess data and the prepared action before allowing continuation. Keep the indication visible beside the summary. A truncated account in a distant header should not be the only sign that context changed.
For WCAG status messages, criterion 4.1.3, relevant information must be programmatically determinable so assistive technology can announce it without receiving focus. Develop text and semantics together. Colour can reinforce status, but a green check alone does not explain what was confirmed.
Check the flow when the path stops being ideal
In the prototype and a test implementation, observe whether someone distinguishes approval from deposit, finds the network and can explain the amount. Include wallet rejection, account changes, failed queries and returning to a page with an outstanding operation. These are proposed test scenarios rather than results already observed.
Document them in the Web3 interface work and connect each state to supporting information. The component library of a web application can provide buttons, summaries and messages; each state’s meaning requires specific work.
Approve the design when you can answer three questions at every point: what the person authorised, what the system knows and what remains to be verified. The interface can be calm and visually precise while keeping the conditions that make the decision important in view.
[+] On this page 15 topics ▼
- Start with the question the person is trying to answer
- Separate connection, permission and execution
- A message signature can also have consequences
- Format amounts without erasing relevant precision
- Derive states from evidence
- Give rejection and context changes their own treatment
- Check the flow when the path stops being ideal
- Author
- Frequently Asked Questions
- Does connecting a wallet authorise a contract to spend tokens?
- Can I describe every message signature as harmless?
- Can I format every token using eighteen decimals?
- Does a successful receipt mean I can immediately show a completed deposit?
- Related Articles
- Continue reading
Frequently Asked Questions
Does connecting a wallet authorise a contract to spend tokens?
No. Connection establishes account and network context; an ERC-20 approval is a separate operation. Show the amount, token, spender and confirmed outcome of each request.
Can I describe every message signature as harmless?
No. For example, ERC-2612 permits a spending approval through a signed message submitted to the contract. Explain the actual request’s effect before asking for a signature.
Can I format every token using eighteen decimals?
No. The decimals method is optional in ERC-20 and its value varies. Resolve token metadata and context; if you cannot establish the unit reliably, do not invent a balance or amount.
Does a successful receipt mean I can immediately show a completed deposit?
Check the executed operation, expected state and network confirmation policy. Successful approval does not mean a completed deposit, and inclusion and finalisation should be distinguished where relevant.
Related
Start your project
Need a website that earns trust, ranks in search, and gives your business a stronger digital presence? Start the conversation here.