AI Forge Documentation

Multi-Chain Support

🔗 Native Multi-Chain Integration

Deploy AI agents that operate seamlessly across 8+ blockchains. Access unified liquidity, execute cross-chain arbitrage, and manage multi-chain portfolios with enterprise-grade infrastructure.

8+
Blockchains
3000+
Protocols
$65B+
Total TVL
< 5min
Bridge Time

Supported Blockchains

🔷

Ethereum

ETH

$60B+
TVL
2000+
Protocols
  • Native ETH support
  • ERC-20 tokens
  • DeFi protocols
  • NFT marketplaces
🟣

Polygon

MATIC

$1.2B+
TVL
400+
Protocols
  • Low gas fees
  • Fast transactions
  • Ethereum compatibility
  • Gaming ecosystem
🔵

Arbitrum

ARB

$2.8B+
TVL
300+
Protocols
  • L2 scaling
  • Ethereum security
  • Low costs
  • DeFi ecosystem
🔴

Optimism

OP

$800M+
TVL
150+
Protocols
  • Optimistic rollups
  • Fast finality
  • EVM compatible
  • Growing DeFi
🔺

Avalanche

AVAX

$1.5B+
TVL
200+
Protocols
  • Sub-second finality
  • High throughput
  • Subnet architecture
  • DeFi focus

0G Chain

0G

Growing
TVL
50+
Protocols
  • AI-optimized
  • High performance
  • Decentralized storage
  • Native compute

Cross-Chain Capabilities

Unified Asset Management

Manage assets across all chains from a single interface

  • Cross-chain portfolio tracking
  • Unified balance queries
  • Multi-chain transaction history
  • Asset bridging automation

Cross-Chain Arbitrage

Exploit price differences across different blockchains

  • Real-time price comparison
  • Automated bridge execution
  • Gas optimization
  • MEV protection

Liquidity Aggregation

Access liquidity from multiple chains simultaneously

  • Best price routing
  • Split order execution
  • Slippage minimization
  • Cross-chain swaps

Risk Management

Comprehensive risk assessment across all positions

  • Multi-chain exposure analysis
  • Correlation tracking
  • Bridge risk assessment
  • Diversification metrics

Supported Bridge Protocols

Hop Protocol

Fast and trustless cross-chain transfers

5-15 mins
Avg Time
0.1-0.3%
Fees
4
Chains
EthereumPolygonArbitrumOptimism

Across Protocol

Optimistic bridge with instant transfers

1-3 mins
Avg Time
0.05-0.2%
Fees
3
Chains
EthereumPolygonArbitrum

Stargate

Omnichain liquidity protocol

2-5 mins
Avg Time
0.1-0.4%
Fees
4
Chains
EthereumPolygonArbitrumAvalanche

0G Bridge

Native bridge for 0G Chain ecosystem

< 1 min
Avg Time
0.01-0.1%
Fees
3
Chains
0G ChainEthereumPolygon

Code Examples

Multi-Chain Agent Setup

import { AIForge } from '@aiforge/sdk'

const aiforge = new AIForge({
  apiKey: 'your-api-key',
  chains: ['ethereum', 'polygon', 'arbitrum', '0g-chain']
})

// Create multi-chain agent
const agent = await aiforge.createAgent({
  name: 'Cross-Chain Arbitrage Bot',
  type: 'multi-chain-trading',
  config: {
    supportedChains: ['ethereum', 'polygon', 'arbitrum'],
    bridgeProtocols: ['hop', 'across', 'stargate'],
    maxSlippage: 0.5, // 0.5%
    minProfitThreshold: 0.3 // 0.3%
  }
})

Cross-Chain Swaps

// Execute cross-chain swap
const swapResult = await agent.executeCrossChainSwap({
  fromChain: 'ethereum',
  toChain: 'polygon', 
  fromToken: 'USDC',
  toToken: 'USDC',
  amount: '1000',
  slippageTolerance: 0.1 // 0.1%
})

console.log('Swap executed:', swapResult.txHash)
console.log('Bridge time estimate:', swapResult.estimatedTime)

Cross-Chain Arbitrage

// Monitor cross-chain arbitrage opportunities
agent.on('arbitrageOpportunity', async (opportunity) => {
  console.log(`Found arbitrage: ${opportunity.profitPercent}% profit`)
  console.log(`Token: ${opportunity.token}`)
  console.log(`Buy on ${opportunity.buyChain} at ${opportunity.buyPrice}`)
  console.log(`Sell on ${opportunity.sellChain} at ${opportunity.sellPrice}`)
  
  if (opportunity.profitPercent > 0.5) { // 0.5% minimum
    await agent.executeArbitrage(opportunity)
  }
})

Why Multi-Chain?

Maximum Liquidity

Access $65B+ in total value locked across all major blockchains

Arbitrage Opportunities

Exploit price differences across chains for guaranteed profits

Risk Diversification

Spread risk across multiple chains and ecosystems

Next Steps