smartsave - an app for auto-saving bitcoin on Base powered by AI agents.
Prize Pool
Smartsave is an app designed to transform the way you save Bitcoin by automating your investment strategy with the power of AI on the Base network. Imagine an intelligent system that not only helps you set aside Bitcoin effortlessly but also optimizes your savings based on real-time market trends and personalized financial goals.
At its core, smartsave tackles the common challenge of inconsistent saving habits by leveraging advanced AI agents. These smart agents continuously analyze market data and user behavior to determine the best moments to auto-save, ensuring every buy is strategically timed. With an intuitive, user-friendly interface, smartsave makes it simple for everyone—from crypto newcomers to seasoned investors—to build a robust Bitcoin reserve without the need for constant manual intervention. Of course, this app could work for any asset.
Security and efficiency are at the heart of our solution. By integrating directly with AgentKit by Coinbase and the Base blockchain, smartsave guarantees transparency and safety for every transaction, while our AI-driven approach adapts to market fluctuations, providing a dynamic and risk-aware saving experience.
smartsave has three main components: the app, api and agents.
The app is build with Swift and SwiftUI. It uses the API (implemented in Next.js/Typescript and hosted on vercel) to communicate with the agents. The agents are based on Coinbase's AgentKit.
The app calls in total four endpoints on the vercel API (implemented with Next.js).
The agents project uses Fastify to expose an API that can be called from the API hosted on vercel.
runAgents.ts
: Main code that coordinates buying decisionscoingecko.ts
: Price fetching and analysis from CoinGeckoblockchative.ts
: Gas fee analysis from BlockNativeconstant.ts
: Configuration constants like contract addressesOracle Agent: Acts as decision maker:
Wallet Agent
Interacts directly with Base network The system works sequentially:
Oracle Agent decides if market conditions are favorable If yes, Wallet Agent checks DCA amount and executes trade If no, cycle waits for next interval