(Note · · 5 min read)

Nobody finishes a flow with two transactions

The classic token flow asks for two transactions: one granting permission, one doing the thing. Two wallet prompts, two fees, two chances to walk away — and a measurable number of users who approve, see a second prompt they were not expecting, and stop.

By Md. Habibur Rahman Shohel, full-stack & AI product engineer in Dhaka

A signature is not a transaction

Signing a message proves the holder of a key authorised something. It costs nothing, touches no chain, and can be presented later by somebody else who pays the fee. That distinction is what removes the first prompt.

The permission is then carried into the operation itself: one wallet interaction instead of two, one fee, and no state where a user has granted an allowance and done nothing with it.

Signed permissions carry limits

A good signed permission states what it allows, for how much, to whom and until when. The expiry is the important part — it is what makes a leaked signature a bounded problem instead of an open-ended one.

This is why unlimited approvals are poor practice. A permission that never expires and has no cap stays usable long after the user has forgotten granting it, and a later contract compromise reaches everybody who ever did.

Make the prompt readable

Use the structured signing standard your chain provides, so the wallet can display what is being authorised in readable fields rather than as a hash. A user asked to sign opaque data has no way to make a judgement, and training people to sign anything is the precondition for most signature-based theft.

Include the domain and chain in the signed data so a signature collected for your application on one network cannot be replayed against another.

Verify properly on the other side

  • Recover the signer and compare against the account you expect — never trust an address sent alongside the signature.
  • Check the expiry, and reject anything outside it rather than allowing a grace period.
  • Enforce single use with a nonce, recorded so a signature cannot be presented twice.
  • Confirm the domain, chain and contract in the signed payload are yours.
  • Re-check eligibility at execution time, because conditions true at signing may not be true now.

The last point is the subtle one. A signature authorises an action; it does not freeze the state the action depends on. Balance, eligibility and price all have to be re-evaluated when the operation actually runs.

Tell the user what they are signing

Explain in the interface, in plain words, what the signature permits and for how long — before the wallet opens. The wallet's display is a safety net, not an explanation, and a flow that surprises a user at the prompt loses them there.

Offer a way to see and revoke outstanding permissions. People grant things and change their minds, and a product that makes that easy is one they trust with larger amounts.

Fewer prompts is a product decision

On a staking and swap application I built on an EVM chain, sign-in carries eligibility checks and approvals are gasless through a signed-permission standard, precisely so the user confirms once. The engineering is a means to a completion rate.

Measure it: count how many users reach each prompt and how many complete. A flow that loses a third of its users between two confirmations is a product problem that looks like a technical detail.

Common questions

Why do token flows need two transactions?

The classic pattern grants an allowance in one transaction and uses it in another — two prompts, two fees and a drop-off between them. A signed permission carried into the operation replaces the first transaction, since signing costs nothing and touches no chain.

What should a signed permission include?

What it allows, how much, to whom and until when. The expiry matters most: it makes a leaked signature a bounded problem. Unlimited, non-expiring approvals stay usable long after the user has forgotten granting them.

What must be verified when accepting a signature?

Recover the signer rather than trusting an address sent with it, check the expiry strictly, enforce single use with a recorded nonce, confirm the domain, chain and contract are yours, and re-check eligibility at execution — a signature authorises an action, it does not freeze state.

How do I keep signature requests safe for users?

Use the structured signing standard so wallets show readable fields instead of a hash, explain in plain words what is permitted before the wallet opens, include domain and chain to prevent replay, and provide a way to see and revoke outstanding permissions.

Need something like this built?