← Back to home

SubStream

SubStream: A decentralized subscription platform on Base enabling merchants to create web3 subscriptions with AI-powered auto-renewals, bringing subscription models to web3 seamlessly.

Screenshots

SubStream screenshot 1
SubStream screenshot 2
SubStream screenshot 3

Problem Statement

SubStream: A decentralized subscription platform on Base enabling merchants to create web3 subscriptions with AI-powered auto-renewals leveraging Base AI Agent Kit, bringing subscription models to web3 seamlessly. Description SubStream revolutionizes subscription management in web3 by providing a decentralized platform built on Base. It enables businesses to create and manage subscription-based services while empowering users with autonomous subscription management through Base AI Agent Kit. The platform consists of three key components:Merchant PortalCreate subscription products with customizable durations and pricing Track revenue, subscriber metrics, and growth analytics Manage subscription products with real-time updates Automated USDC payments and settlementSubscriber InterfaceSeamless subscription discovery and management One-click subscription process with automated USDC handling Track active subscriptions and renewal dates Gasless renewal experience with AI agentAI Agent (using Base AI Agent Kit)Autonomous subscription monitoring through onchain event watching Context-aware subscription management Intelligent decision making for renewals based on wallet balance and transaction history Automated USDC approvals and renewals Fail-safe mechanisms and retry logic Advanced user notifications based on subscription statusKey Features:Seamless USDC integration Real-time subscription analytics AI-powered auto-renewals using Base AI Agent Kit Gas-optimized smart contracts Intuitive user experience

Solution

SubStream leverages cutting-edge technologies to create a robust subscription platform:Smart Contracts (Solidity)Core subscription logic built with Solidity 0.8.27 OpenZeppelin standards for security (Ownable, ReentrancyGuard) USDC integration for stable payments Gas-optimized subscription management Event emission for AI agent monitoringFrontend (React/Next.js)Next.js 14 with App Router Custom-built UI components Tailwind CSS for responsive design Wagmi hooks for web3 interactions Coinbase OnchainKit for seamless wallet integrationAI Agent IntegrationBase AI Agent Kit for autonomous operations Onchain and offchain data aggregation Intelligent subscription renewal predictions Context-aware decision making Advanced notification system TypeScript for agent logic implementation Viem for efficient contract interactionsBlockchain IntegrationBase Sepolia testnet deployment Blockscout API for transaction monitoring and analytics Automated USDC handlingTechnical Highlights:AI Agent ImplementationUtilizes Base AI Agent Kit for advanced automation Real-time monitoring of subscription events Intelligent renewal timing based on user behavior Predictive analytics for subscription management Automated decision-making processSubscription ManagementTwo-phase subscription process: USDC approval followed by subscription AI-powered renewal system Efficient subscription data indexing Real-time transaction monitoring via BlockscoutUSDC IntegrationSeamless USDC approval and payment flow Auto-conversion from USD pricing Secure payment handlingSmart Contract OptimizationEfficient storage patterns Gas-optimized operations Event-driven architecture for AI agent Batch processing capabilitiesPartner Technologies:Base for scalable L2 deployment Base AI Agent Kit for intelligent automation Coinbase OnchainKit for wallet integration Blockscout for transaction monitoring Base Sepolia USDC for paymentsWhy These Choices:Base provides the perfect L2 solution for cost-effective subscription management Base AI Agent Kit enables intelligent automation and decision-making OnchainKit enables seamless wallet integration for better UX Blockscout provides reliable transaction tracking and analytics Base Sepolia offers the ideal testnet environment with USDC supportSubStream demonstrates the potential of web3 subscriptions by combining AI-powered automation through Base AI Agent Kit, stable payments, and user-friendly interfaces, all made possible by Base's efficient L2 infrastructure.

Hackathon

ETHGlobal Bangkok

2024

Prizes

  • 🏆

    Best Use of OnchainKit3rd place

    Base

Contributors