Unified Gas Refuel

Cross-chain gas refueling & asset sweeping powered by Avail Nexus SDK with unified balance view.

Unified Gas Refuel

Created At

ETHOnline 2025

Project Description

Unified Gas Refuel is a cross-chain utility app that solves two major DeFi pain points: fragmented gas balances and scattered assets across multiple chains. Gas Refuel Station lets you top up gas on any chain by automatically pulling from your unified balance across 12+ supported chains. Instead of manually bridging or using expensive services, Nexus SDK finds the optimal route to refuel your destination chain with native tokens (ETH, MATIC, etc.). You see all your gas across chains in one view, select quick amounts, and refuel with one click. Asset Sweep consolidates all your token balances from multiple chains to a single destination chain. It scans your unified balance, identifies non-zero balances on chains different from your target, and executes batch bridges to sweep everything into one place. Perfect for portfolio management or preparing for chain-specific activities. Both features leverage Avail Nexus SDK's unified balance API and cross-chain bridge functionality to provide seamless UX without the complexity of managing multiple bridges, fees, or routes. The app tracks intent progress in real-time with visual status updates and explorer links.

How it's Made

How It's Made Tech Stack: Next.js 15 + React 19 for the frontend Avail Nexus SDK (@avail-project/nexus-core) for cross-chain orchestration Wagmi v2 + ConnectKit for wallet connectivity Tailwind CSS v4 + Shadcn UI for styling TypeScript for type safety Nexus SDK Integration: The app makes heavy use of Nexus SDK's core features: getUnifiedBalances() - Fetches and aggregates token balances across all supported chains. This powers both the gas refuel view (filtering for native tokens) and the sweep view (all assets). bridge() - Executes cross-chain transfers. For gas refuel, we bridge native tokens to the destination chain. For sweep, we iterate through all non-zero balances and bridge each to the target chain. Intent Monitoring - Using the intentRefCallback, we track transaction status in real-time. Custom hook useListenTransactions monitors intent progress and provides status updates. Chain & Token Metadata - Leveraging CHAIN_METADATA and SUPPORTED_CHAINS from nexus-core for chain logos, native currency info, and supported networks.

background image mobile

Join the mailing list

Get the latest news and updates