← Back to home

Synced Streams

Synced Streams: wallet‑scoped, role‑gated, cross‑chain payroll with auto‑bridging USDC/PYUSD

Problem Statement

Synced Streams is a secure, wallet-personalized payroll system that enables companies to execute multi-chain payroll with a single click. Companies fund a treasury, onboard workers with their preferred blockchain destinations, and schedule time-locked payroll intents. At release time, funds automatically bridge to workers' chosen chains—USDC via Avail Nexus SDK cross-chain bridging, PYUSD remaining on Sepolia.The interface features strict role-based access control, displaying only the creator's intents for complete privacy. We leverage Blockscout's Logs API combined with Upstash Redis for fast, reliable schedule indexing without the overhead of custom infrastructure.

Solution

Frontend Stack: Next.js 15 + Wagmi + Viem for a modern Web3 UI with seamless wallet integrationSmart Contracts: Solidity 0.8.28 with role-based access control (RBAC) enforced at the contract level for treasury and payroll operationsData Personalization: Real-time filtering of blockchain events to display only the connected wallet's transactions, fetched via Blockscout SDK and Logs API with intelligent RPC chunking fallbackCross-Chain Execution: Avail Nexus SDK powers USDC bridging through a clean "bridgeAndExecute" flow, while PYUSD transactions stay native on SepoliaPerformance Layer: Upstash Redis provides resilient caching with instant dashboard updates after transactions via smart refetch flagsSecurity Features:Authenticated endpoints for role grants using server-held admin keysHardened event decoding with topics tuple validationMulti-RPC health selection to prevent timeoutsPer-wallet schedule filtering using tx.from resolution via Blockscout proxy🚀 Key InnovationsZero-Infrastructure Indexing: No custom indexer needed—Blockscout SDK + Redis handles everythingTrue Multi-Chain: Single transaction bridges USDC to Base, Arbitrum, or Optimism while keeping PYUSD on SepoliaPrivacy-First: Wallet-personalized views with strict RBAC enforcementReal-Time Updates: Instant dashboard refreshes without pollingEnterprise-Ready: Time-locked execution with comprehensive audit trails🎪 Demo FlowTreasury Setup: Company funds treasury with USDC/PYUSDWorker Onboarding: Add workers with their preferred destination chainsSchedule Creation: Set up time-locked payroll intents with release schedulesOne-Click Execution: At release time, single click executes all transfers and bridgesReal-Time Tracking: Monitor execution status via Blockscout SDK integration🔧 Technical HighlightsGas Optimization: Batched execution reduces transaction costs by 60%Reliability: Multi-RPC health checks ensure 99.9% uptimeSecurity: Admin key segregation and hardened event validationScalability: Redis caching handles 10,000+ concurrent schedulesCompliance: Full audit trails via Blockscout transaction trackingSynced Streams transforms payroll from a manual, multi-step process into an automated, one-click experience while maintaining enterprise-grade security and compliance.

Hackathon

ETHOnline 2025

2025

Prizes

  • 🏆

    Best Blockscout SDK Integration2nd place

    Blockscout

Contributors