Most Web3 products are not “on-chain apps”. They are ordinary platforms — with users, feeds, payments, search and support — that use a blockchain for the few things it does better than a database: ownership, transfers, transparent rules and settlement. Getting that split right is the most important architectural decision you will make.
Decide what really belongs on-chain
Put on-chain only what needs to be trustless, public or transferable:
- token balances and transfers
- rules that users must be able to verify (staking, vesting, rewards logic)
- ownership records (NFTs, memberships)
- final settlement of value
Keep off-chain everything that is large, private, frequently changing or needs fast queries: profiles, content, messages, search indexes, analytics. On-chain storage is expensive, public forever and slow to query.
The layers of a typical platform
- Smart contracts. Small, focused and heavily tested. Every line is attack surface.
- Indexing. Contracts emit events; an indexer (a subgraph or your own service) turns them into queryable data. Never make your UI read the chain directly for lists and history.
- Backend and API. A conventional service layer — NestJS or Node.js in our case — for business logic, off-chain data, notifications and integrations.
- Wallets and authentication. Sign-in with a wallet signature (Sign-In with Ethereum or the TON equivalent), combined with email or social login for users who do not have a wallet yet.
- Frontend. React or Next.js, with wallet connection, clear transaction states and human-readable errors.
- Infrastructure. Redundant RPC providers, queues for retries, monitoring of both servers and contracts.
Choosing a network
Choose the network for your users and your use case, not for the narrative. EVM networks (Ethereum and its layer-2s, BNB Chain, Polygon and others) share tooling and auditors, which lowers cost and risk. TON gives direct access to Telegram’s audience and wallet. Layer-2 networks reduce fees significantly but add bridge and sequencer considerations you should understand.
Security decisions to make before mainnet
- Independent audits. Internal tests are necessary; an external audit is what users and exchanges trust. Budget time to fix findings.
- Admin keys. Use a multisig wallet for privileged functions and a timelock for sensitive changes, so the community can see changes coming.
- Upgradeability. Proxy patterns let you fix bugs, but they also mean someone can change the rules. Decide deliberately and disclose it.
- Limits and pauses. Rate limits, caps and an emergency pause can turn a catastrophic exploit into a bad day.
- Key management on servers. Hot wallets used by your backend should hold only what they need, with alerts on unusual activity.
- Monitoring. Watch contract events in real time, not only your servers.
User experience is a security feature
Confusing transactions lead to mistakes and phishing. Show what a user is signing in plain language, simulate transactions where possible, and hide gas complexity when you can — account abstraction (ERC-4337) and sponsored transactions make onboarding far smoother on EVM networks.
Compliance hooks from day one
Depending on what your platform does, you may need KYC for certain features, sanctions screening of wallet addresses, travel-rule data for transfers, and a white paper for your token. Designing these hooks into the architecture early is far cheaper than retrofitting them under deadline pressure.
A short checklist
- On-chain scope written down and justified
- Contracts tested, audited, verified, with multisig and timelock where needed
- Indexer and API in place; no UI reading lists straight from the chain
- Wallet and non-wallet onboarding both work
- Monitoring and an incident plan exist before launch
- Legal assessment of the token and the services done
How we help
MALI VERSE designs and builds Web3 platforms end to end — tokenomics, contracts, backend, apps and the infrastructure around them — and coordinates independent audits before anything touches mainnet.
This article is general information, not legal or investment advice.