AGFusion Protocol Documentation
Complete guide to AGFusion: the AI-native stablecoin operating system on Arc Network. Explore our smart contract architecture, native USDC gas economy, agent escrow lifecycles, and Model Context Protocol (MCP) integrations.
1. Overview & Architecture
AGFusion is an AI-assisted stablecoin workspace and agentic command layer built on Arc Network. It eliminates multi-dapp fragmentation by unifying payments, token swaps, cross-chain CCTP bridging, and corporate treasury management into a single, high-performance interface.
2. Arc Network & Native USDC Gas
On traditional EVM networks (Ethereum, Arbitrum, Optimism), users must hold volatile native gas tokens (ETH).Arc Network revolutionizes this: native gas is paid directly in USDC (18 decimals).
A standard 21,000 gas transfer at 1.5 Gwei costs:
Compared to ~$2.80 on Ethereum L1, Arc provides over 99.9% cost reduction with zero volatile asset exposure.
3. Swap, Send & Cross-Chain CCTP Bridge
AGFusion provides 4 unified money actions directly from the home surface:
4. Single-Signature Batch Payouts & CSV Import
Corporate payroll and contractor disbursements on traditional dApps require approving and signing for every recipient individually. AGFusion solves this via AGFusionDisperse.sol:
B2B CSV Import Format
Upload a standard spreadsheet with columns address,amount,label to instantly populate all payout rows:
0x2222222222222222222222222222222222222222,8.0,Product Designer
0x3333333333333333333333333333333333333333,5.2,Security Auditor
Use the "Statement" button to export completed disbursements into GAAP-compliant CSV accounting records with ArcScan hashes.
5. On-Chain AI Agent Escrow (AGFusionEscrow.sol)
Rather than simulating agent escrow phases in the UI, AGFusion deploys a verified on-chain escrow contract on Arc:
6. ERC-7715 Autonomous Session Keys
To power truly autonomous AI workflows without constant wallet popups, AGFusion implements an ERC-7715 scoped session engine:
- Daily Spend Cap: Hard limit (e.g. 10.00 USDC per day) that resets at 00:00 UTC.
- Per-Transaction Cap: Prevents rogue large transactions (e.g. max 2.00 USDC per call).
- Target Whitelist: Only verified contracts (DEX Router, Escrow, Disperse) are authorized.
- 24-Hour Expiration: Automatically invalidates sessions requiring user renewal.
7. Machine-to-Machine HTTP-402 (x402) Protocol
Arc Network is the ideal home for machine-to-machine commerce. AGFusion implements the HTTP-402 (Payment Required) specification for pay-per-call AI endpoints:
Headers: X-Payment-Token: USDC | X-Payment-Amount: 0.001 | X-Payment-ChainId: 5042002
When an agent pays $0.001 USDC on Arc and provides the transaction hash in X-Payment-Tx, the endpoint unlocks live algorithmic liquidity and routing telemetry.
8. AGFusion MCP (Model Context Protocol) Server
AGFusion provides an official MCP Server that connects Claude Desktop, Cursor, and IDE AI agents to Arc Network tools over standard stdio JSON-RPC:
{
"mcpServers": {
"agfusion-arc": {
"command": "node",
"args": ["C:/Users/sayed/.grok/bin/agfusion/mcp/server.mjs"]
}
}
}arc_get_network_info, arc_get_balance, arc_estimate_gas_savings, arc_prepare_batch_disperse, and arc_escrow_query.