Pocket

Pocket: A delegated wallet for juniors and seniors. Easier onboarding for everyone.

Pocket

Created At

ETHOnline 2025

Project Description

Pocket is a secure, blockchain-powered payment system designed for families, offering delegated spending controls and approval workflows. The project features a FamilyAccount smart contract on the Ethereum blockchain, allowing parents to manage spending limits for family members (such as children) and approve or reject transactions. The backend provides real-time event monitoring, and the frontend displays a family dashboard for easy management and notifications. Using technologies like Hardhat, Node.js, and Next.js, Pocket ensures seamless and secure family payments with parental oversight.

How it's Made

Pocket is built using several modern web3 and backend technologies:

Smart Contracts (Hardhat + Solidity): The core contract, FamilyAccount.sol, manages family members, spending limits, and approval workflows. The contracts are deployed to the Sepolia test network and communicate with the backend for real-time updates.

Backend (Node.js + Express + Prisma): A Node.js backend with Express serves as the API layer. It handles RESTful requests for family and member management and listens to blockchain events via WebSocket for real-time updates. Prisma ORM is used for managing the SQLite database and enabling efficient querying.

Frontend (Next.js + Wagmi + Tailwind): The frontend leverages Next.js for a React-based user interface, integrated with Wagmi for connecting with the Ethereum wallet (like MetaMask). Tailwind CSS is used for styling. The dashboard allows family members to manage spending limits, view pending approvals, and see transaction history.

Real-Time Features: The backend listens to blockchain events and updates the frontend in real-time via WebSockets, ensuring that parents are notified instantly of any pending spending requests.

Deployment & Testing: The project is deployed using a script that automates smart contract deployment, backend setup, and frontend launch. Comprehensive tests are written for the smart contracts using Hardhat’s testing framework.

background image mobile

Join the mailing list

Get the latest news and updates