project screenshot 1
project screenshot 2
project screenshot 3

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.

SubStream

Created At

ETHGlobal Bangkok

Winner of

Base - Best Use of OnchainKit 3rd place

Project Description

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 Portal

Create 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 settlement

Subscriber Interface

Seamless subscription discovery and management One-click subscription process with automated USDC handling Track active subscriptions and renewal dates Gasless renewal experience with AI agent

AI 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 status

Key Features:

Seamless USDC integration Real-time subscription analytics AI-powered auto-renewals using Base AI Agent Kit Gas-optimized smart contracts Intuitive user experience

How it's Made

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 monitoring

Frontend (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 integration

AI Agent Integration

Base 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 interactions

Blockchain Integration

Base Sepolia testnet deployment Blockscout API for transaction monitoring and analytics Automated USDC handling

Technical Highlights:

AI Agent Implementation

Utilizes 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 process

Subscription Management

Two-phase subscription process: USDC approval followed by subscription AI-powered renewal system Efficient subscription data indexing Real-time transaction monitoring via Blockscout

USDC Integration

Seamless USDC approval and payment flow Auto-conversion from USD pricing Secure payment handling

Smart Contract Optimization

Efficient storage patterns Gas-optimized operations Event-driven architecture for AI agent Batch processing capabilities

Partner 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 payments

Why 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 support

SubStream 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.

background image mobile

Join the mailing list

Get the latest news and updates