This architecture demonstrates patterns and best-practices for building stateless, client-side applications that derive all state from onchain events without requiring traditional databases or user account systems.
Since we're directly consuming onchain data we have automatic synchronization with the current chain state. By leveraging subgraph data along with client-side processing, we can:
- Infer relationships from on-chain activity (e.g., multiple accounts managed by a single wallet)
- Derive the full onchain state from raw events (e.g., transaction status, account balances)
- Scale horizontally without additional backend infra
- Maintain a single onchain source of truth