Shipping on Chain
dApp architecture: wallets, reads, writes & indexers
Lesson 2 of 5
A dApp is a normal web app with three unusual data paths. Reads go to an RPC, writes go through the user's wallet, and anything list-shaped comes from an indexer built on events.
What you'll learn
- Draw the three data paths of a dApp and say which one the wallet owns
- Connect a wallet and read/write a contract with viem and wagmi in a Next.js app
- Build an indexer: pull Transfer logs from the chain and fold them into a queryable table
Members only
A free account unlocks this lesson and every other one.
Runnable challenges, knowledge checks, and progress that syncs across your devices. No card needed.
Not sure yet? Try the free lesson first: Security: the exploits that defined the industry