Skip to content
arb-agent

arb-agent

Autonomous ETH arbitrage across chains

Created on 15th March 2026

•

arb-agent

arb-agent

Autonomous ETH arbitrage across chains

The problem arb-agent solves

Problem Statement
The Problem with Cross-Chain Arbitrage Today

Across different blockchain networks such as NEAR, Arbitrum, and Base, ETH is often trading at slightly different prices at the same time. Sometimes the difference can reach $20–$50 per ETH. In theory, this creates an arbitrage opportunity where someone could buy ETH where it is cheaper and sell it where it is more expensive.

In practice, very few people are able to capture these opportunities manually.

Monitoring multiple markets is difficult.
Price differences appear and disappear within seconds. To take advantage of them, someone would need to constantly monitor multiple decentralized exchanges such as Ref Finance, Uniswap, and Aerodrome at the same time. By the time a human notices the opportunity, it is usually already gone.

Profit calculation is more complex than it appears.
Arbitrage profit is not simply the difference between the selling price and the buying price. A correct calculation must include bridge fees, decentralized exchange trading fees, gas costs, slippage, and execution risk. Trades that appear profitable can easily become losses if these factors are not calculated properly.

Execution requires technical DeFi knowledge.
Even if someone identifies a profitable opportunity, executing the trade across chains can be complicated. It often requires interacting with multiple decentralized exchanges, using cross-chain bridges such as Rainbow Bridge, and coordinating transactions through systems like NEAR Intents. For many users, this level of technical complexity is a major barrier.

Speed is critical.
Arbitrage opportunities usually last only a few seconds. A human trader would need to detect the opportunity, calculate the real profit, and execute the transaction quickly. By the time these steps are completed manually, the price difference has already disappeared.

What ARB Agent Does

ARB Agent is an autonomous DeFi system designed to handle this entire process automatically.

Instead of relying on manual monitoring, the agent continuously scans decentralized exchanges across chains, evaluates potential opportunities, calculates the exact profitability after fees and execution costs, and executes trades through NEAR Intents when conditions are favorable.

Who Can Use This
Crypto traders who want to capture arbitrage opportunities without constantly monitoring markets.
DeFi protocols that want to help maintain price consistency across multiple chains and reduce inefficiencies.
Quantitative analysts who want a base framework for building more advanced cross-chain trading strategies.
Developers interested in understanding how autonomous AI agents can interact with blockchain infrastructure.
New users exploring DeFi who want exposure to arbitrage trading without needing to understand the underlying technical complexity.

Real-World Impact

Cross-chain decentralized finance activity generates significant trading volume every day, which naturally creates temporary price differences between networks.
Price gaps of around 1–3 percent appear regularly across chains such as NEAR, Arbitrum, and Base. Currently, most of these opportunities are captured only by sophisticated automated trading systems.
ARB Agent demonstrates how these opportunities can be detected and executed automatically, while also helping reduce price differences between chains and improving market efficiency across decentralized finance ecosystems.

Why It Matters

Decentralized finance aims to make financial systems more open and accessible. However, many profitable opportunities in DeFi are still dominated by technically advanced users who operate custom trading bots.

ARB Agent demonstrates how autonomous AI agents can interact with real blockchain infrastructure to perform complex cross-chain financial operations, making these systems easier to understand and more accessible to a broader group of users.

Challenges we ran into

Challenges I Ran Into

Building ARB Agent involved several practical challenges during development. One of the biggest issues was Gemini model availability. Models such as gemini-1.5-flash and gemini-2.5-flash-preview stopped working with the ADK-TS v1beta API, repeatedly returning 404 errors. After experimenting with multiple models and configurations, the project ultimately stabilized using gemini-3.0-flash-preview, which provided reliable performance and compatibility with the framework. Another challenge was that the dashboard kept showing $0.00 and zero trades even though the agent was detecting opportunities. This happened because Gemini responses were formatted differently than expected, so the response parser had to be rewritten to handle more flexible text formats. Development was also slowed down by editing the wrong files, since pnpm start executed the compiled code in the dist/ folder rather than the source code in src/. Switching to pnpm dev solved this by running the TypeScript source directly. In addition, the initial NEAR Intents integration was pointing to localhost endpoints, meaning no real swaps could occur; this required rebuilding the swap tool to use the actual NEAR Intents API with a quote → swap → execute flow. Another improvement was removing profit calculations from the LLM and replacing them with a deterministic calculator that accounts for bridge fees, DEX fees, slippage, and gas costs, allowing the AI to focus only on decision-making. During development, Git pre-commit hooks from Biome linting also blocked commits, which required fixing Node import protocols and occasionally using --no-verify during rapid iteration. Finally, the Gemini free-tier request limits produced 429 errors, so a spread threshold was introduced to ensure the AI is only called when meaningful arbitrage opportunities appear. The overall lesson from building ARB Agent was that a reliable autonomous trading system requires stable infrastructure and deterministic calculations, while the AI should focus purely on reasoning and strategic decisions.

Tracks Applied (3)

Electrothon 8.0 Winners

ARB Agent is our submission for Electrothon 8.0 — an autonomous cross-chain ETH arbitrage agent built on IQ AI ADK-TS fr...Read More

IQ AI

ARB Agent is built entirely on the IQ AI ADK-TS framework, using a 3-agent Sequential Pipeline: Price Monitor Agent — f...Read More

IQ AI

Best Use of Gemini 3 [Google Deepmind]

ARB Agent integrates Gemini 3 Flash as the core AI reasoning engine for autonomous DeFi trading decisions. How we use G...Read More

Google Deepmind

Discussion

Builders also viewed

See more projects on Devfolio