Salar Saeedi

Product management · Analysis

Write separate copy for simulation and confirmation

Wallet simulation is useful evidence about a proposed action. Give signing, submission and confirmed effects their own language.

Salar Saeedi2 min read
Three-stage illustration — Write separate copy for simulation and confirmation

A product team calls a preparation check “Transaction successful.” The visitor interprets it as a completed transfer and closes the page. The interface has used the language of a receipt for a result that arrived before signing.

Call the preflight a preview

The viem documentation says simulateContract can evaluate a write call without changing blockchain state. A successful simulation can reveal the expected result under the supplied parameters. Make the source account, chain and relevant quote assumptions visible before offering a signing action.

Source · viem · simulateContract

Reserve “submitted” for a real reference

Once the wallet has accepted a request for submission, preserve its transaction or batch reference as appropriate. EIP-5792 makes status a separate query from sending requests. A pending status needs an updated view and a support reference, even if the user dismisses the wallet.

Source · Ethereum · EIP-5792 Wallet Call API

Verify the benefit the user expected

For an entitlement, inspect the resulting asset or service state as well as the relevant receipt. The quote and the settlement may differ because application or chain state changed between preparation and execution. Make that distinction understandable in the timeline.

What to take away

Watch a user read one pending transaction and one confirmed one. Ask what they believe has changed in each case.

References

Related work in the portfolio