Web3 billing infrastructure for metering off-chain micro-events with a single on-chain settlement
YellowMeter OS is a session-based Web3 monetization infrastructure designed to solve the problem of on-chain micro-interaction billing. Built with the Yellow SDK and powered by the Nitrolite protocol, it enables developers to open sessions, record thousands of off-chain events in real time, and settle them with a single on-chain transaction—reducing costs by up to 99% while delivering a seamless user experience. The project integrates ENS as a core functional layer, not an afterthought: users interact through human-readable identities, enable discovery, store preferences, and communicate via a private, decentralized chat system inspired by BitChat. YellowMeter OS showcases real, working use cases including P2P games with USDC, trading, AI inference, and micro-APIs, demonstrating a production-ready, scalable solution for fair and granular Web3 monetization.
This project was developed as a fully functional end-to-end prototype built on Yellow Network, using the Yellow SDK and the Nitrolite engine to enable real off-chain transaction logic through session-based state channels. We implemented a session metering system where every micro-event (game moves, chat messages, API calls, AI inference requests) is recorded off-chain and settled once on-chain at the end of the session, dramatically reducing cost and friction.
The stack includes Solidity and Hardhat for settlement contracts, Node.js + TypeScript + Fastify for backend session management and state synchronization, Next.js 14 + Tailwind CSS for the frontend, Redis for ephemeral state handling, and ethers.js v6 for blockchain interactions. The main technical challenge was securely synchronizing state between Yellow channels and the backend, which we solved by enforcing monotonic nonces and cryptographically validating every state update before executing external actions.
In addition, we integrated ENS as a functional infrastructure layer, not just naming. Users discover each other, chat privately, and transact using ENS names, with preferences and interaction context stored via ENS records. This enables decentralized identity, private messaging, and a significantly improved UX. The result is a live demo that clearly shows how Yellow Network improves transaction speed, user experience, and efficiency through fair, verifiable final settlement.

