ChainSteam

Autonomous agent optimizing cross-chain payments via Arc Network.

ChainSteam

Created At

HackMoney 2026

Project Description

ChainStream is an autonomous cross-chain payment agent designed to solve the fragmentation of decentralized subscription management. In the emerging DePIN (Decentralized Physical Infrastructure Networks) and AI economy, users consume resources across disparate protocols—such as storage on Arweave, compute on Akash, and various data feeds—leading to scattered liabilities and inefficient ad-hoc payments.

ChainStream acts as an intelligent financial aggregator and optimizer. Instead of managing dozens of individual micropayments, users delegate this workload to the agent. The system continuously monitors simulated accrued costs from various decentralized services. Once a defined unified debt threshold is reached, ChainStream’s optimization engine activates.

Key Technical Features:

Intelligent Routing: It utilizes LI.FI's advanced routing SDK to analyze your real-time balances across multiple chains (Ethereum Sepolia, Base Sepolia, Arbitrum Sepolia). Cost Optimization: The agent calculates the most gas-efficient path to bridge funds and settle the consolidated debt directly on the Arc Network, taking advantage of its sub-second finality and low transaction costs. Hybrid Architecture: The project showcases a realistic production-ready integration. It features 100% real blockchain state for wallet connections, multi-chain balance tracking, and Arc Testnet transactions, blended with simulated service consumption models to demonstrate the complete lifecycle of an autonomous payment flow. By automating the "check balance -> find cheapest route -> bridge -> pay" loop, ChainStream creates a seamless "stream" of value, ensuring critical decentralized services remain active without user intervention while maximizing capital efficiency.

How it's Made

Architecture & Frontend We built ChainStream as a responsive dApp using Next.js 14, TypeScript, and Tailwind CSS. The core user experience relies on RainbowKit for seamless wallet connectivity across multiple testnets simultaneously. We leveraged Wagmi and Viem for robust low-level blockchain interactions, specifically for fetching real-time balances and executing transactions.

Integration Strategy The project's "brain" is the integration of two key partners: LI.FI and Arc Network.

LI.FI SDK Integration: We implemented the LI.FI SDK to act as our routing intelligence layer. It actively scans the user's connected wallets (Sepolia, Base Sepolia, Arbitrum Sepolia) to find the most capital-efficient path for bridging funds. Arc Network: Can act as the final settlement layer. We chose Arc for its performance properties—sub-second finality and negligible gas fees—which are critical for high-frequency micropayments. The "Hacky" Hybrid Implementation The most notable technical challenge effectively solving the "chicken and egg" problem of hacking on a brand-new L1. Since Arc Network is so new (launched Oct 2025 in this timeline) and not yet fully indexed by major routing providers like LI.FI, we built a custom "Hybrid Router".

Real Data: We fetch actual gas costs and bridge fees for supported chains (Base, Sepolia, Arbitrum) using the live LI.FI API. Simulated Destination: We then injected a custom "Virtual Route" for Arc into the comparison engine. This adapter mimics the LI.FI response structure but calculates costs based on Arc's documentation parameters. Real Execution: When the user selects the "Best Route," the app executes a real on-chain transaction. If the source is a standard testnet, it uses LI.FI; if the destination is Arc, it triggers a direct native USDC transaction on the Arc Testnet, proving that while our routing layer had to be "polyfilled," the actual value transfer is live and verifiable on-chain.

background image mobile

Join the mailing list

Get the latest news and updates

ChainSteam | ETHGlobal