Cross-Chain

Cross-Chain Bridge API
for AI Agents

Opportunities don't stay on one chain. When yield is higher on Arbitrum, your agent needs to bridge there fast. When a trade setup appears on Solana, capital should move automatically. Purple Flea's bridge API handles cross-chain transfers in a single call, routing through the cheapest and fastest bridge available.

Start Bridging โ†’ View Docs
Why It Matters

Capital has no chain allegiance. Yours shouldn't either.

The highest-yielding opportunities rotate constantly across chains. An agent locked to one chain misses most of the market. A bridge API lets your agent treat all 8 chains as one unified liquidity pool.

๐ŸŒŠ
Yield Arbitrage

When a lending protocol on Arbitrum pays 18% on USDC while Ethereum pays 8%, your agent bridges the difference. The bridge cost pays for itself in hours. No manual intervention required.

โšก
Trading Opportunities

Token listings, liquidation events, and funding rate imbalances appear across different chains. An agent that can move capital in 5 minutes can capture opportunities that chain-locked agents cannot reach.

๐Ÿ”„
Portfolio Rebalancing

As market conditions change, your optimal asset allocation across chains shifts. Bridge API enables fully automated multi-chain portfolio rebalancing โ€” not just within a single chain but across the entire DeFi ecosystem.

Supported Bridges

Six bridge providers. One API.

Purple Flea aggregates routes across the most reliable bridge protocols. Your agent always gets the best combination of cost, speed, and security.

๐ŸŒŸ
Stargate
Unified liquidity bridge. Excellent for USDC transfers. Native asset support across 7 chains. Low fees, high reliability.
๐ŸŒ‰
Across Protocol
Fastest bridge for EVM chains. Near-instant transfers using an optimistic model. Excellent for time-sensitive opportunities.
๐ŸŒธ
Hop Protocol
Specialized in Ethereum L2 transfers. ETH, USDC, USDT across Optimism, Arbitrum, and Polygon with low slippage.
๐ŸŒ€
Wormhole
Cross-ecosystem bridge. Connects EVM chains to Solana, Aptos, and Sui. Essential for non-EVM yield opportunities.
๐Ÿ“ก
LayerZero
Omnichain messaging protocol. Powers OFT (omnichain fungible token) transfers across 40+ chains with deep integration.
๐Ÿ›๏ธ
Native Bridges
Official canonical bridges for Arbitrum, Optimism, and Base. Slower (7-day withdrawals) but maximum security for large transfers.
Integration

Bridge in four lines of Python

Find the best route, execute the bridge, and wait for arrival confirmation โ€” all in one script.

Bridge API โ€” Route & Execute Python
import purpleflea

bridge = purpleflea.BridgeClient(api_key="YOUR_KEY")

# Find cheapest + fastest route to bridge $1000 USDC
routes = bridge.find_routes(
    from_chain="ethereum",
    to_chain="arbitrum",
    token="USDC",
    amount=1000
)

print(f"Best route: {routes[0]['bridge']} | Fee: ${routes[0]['fee_usd']:.2f} | ETA: {routes[0]['eta_minutes']}min")

# Execute bridge
transfer = bridge.bridge(
    route_id=routes[0]["route_id"],
    agent_id="agent_001",
    amount=1000
)

print(f"Bridge initiated: {transfer['tx_hash']}")
print(f"Expected arrival: {transfer['expected_arrival']}")

# Wait for confirmation
bridge.wait_for_arrival(transfer["bridge_id"])
print("Bridge complete!")
Bridge Route Selection

Popular routes and their benchmarks

Purple Flea selects the optimal route based on fee, speed, and reliability. Here are typical metrics for the most common cross-chain transfers.

Route Best Bridge Typical Fee Transfer Time Reliability
Ethereum โ†’ Arbitrum Across Protocol 0.05โ€“0.12% 2โ€“4 min 99.8%
Ethereum โ†’ Polygon Stargate 0.06% 3โ€“6 min 99.6%
Arbitrum โ†’ Optimism Hop Protocol 0.04% 4โ€“8 min 99.4%
Ethereum โ†’ Solana Wormhole 0.15โ€“0.30% 8โ€“15 min 98.9%
Base โ†’ Arbitrum Across Protocol 0.04% 2โ€“3 min 99.7%
Ethereum โ†’ Avalanche Stargate 0.09% 5โ€“10 min 99.3%
8
Supported Chains
ETH, ARB, OP, BASE, POLY, AVAX, BSC, SOL
6
Bridge Providers
Automatic best-route selection
~5min
Average Transfer Time
EVM-to-EVM routes typically faster
Get Started

Start Bridging Assets

Register for a free API key and give your agent the freedom to move capital wherever yield is highest. No manual bridging, no missed opportunities.

Related APIs

Pair bridge access with wallet management and on-chain yield tools.