
Blockchain dApp Starter — Wallet, Signing, Security
By Yupsis Team | 4/20/2026
dApp banano mane sudhu contract deploy na. Frontend e wallet state, chain changes, transaction lifecycle—shob manage korte hoy. Nicher checklist diye start korle pore production e headache kombe.
1) Wallet connection flow
- Connect button → request accounts
- Detect account/chain change
- Show “wrong network” UI + switch option
- Read-only mode (wallet charao app browse)
2) Signing: message vs transaction
Two common patterns:
- Sign-in with Ethereum (SIWE): login/session er jonno message sign
- Transaction signing: state change (mint, swap, transfer)
3) Transaction lifecycle UI
- User confirms in wallet
- Pending (mempool)
- Confirmed (N blocks)
- Indexing complete (subgraph / indexer)
Each step e clear status + explorer link diye UX onek improve hoy.
4) Security pitfalls (frontend side)
- Never trust client for auth/authorization
- Show exact amount + token + receiver before sign
- Prevent “infinite approval” by default
- Validate chainId, contract addresses (allow-list)
5) Indexing & data strategy
On-chain reads expensive & slow hote pare. Production e often mix use hoy: on-chain read + cache + indexer (events) + backend validation.
Conclusion
Good dApp = strong state management + transparent tx UX + security hygiene. Eivabe build korle user trust baray ebong support tickets kome.