Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AgentChain — On-Chain AI Agent Framework

Autonomous AI agents with wallets, memory, reputation, and governance — all on-chain. The missing infrastructure for the AI agent economy.

On-Chain Proof (Deployed & Verified)

Base Sepolia (OP Stack)

Contract Address Tx Hash
AgentRegistry 0x50c781F3C6588DEbd84e105aF888BA78FF5B8F7A 0xc60afc...6fde
AgentWallet 0x0bcd305F3614E8612eb4d3dA27eD622b4a72E027 0xfda3bc9...9ac7e
AgentMemory 0x2E01fA2F9dEa54329d4802746112fBfB6F4ce04F 0xa3206c5...80a98
AgentReputation 0xE34Cc3fe62552Bc73934B8a3c618dD029F8a91Da 0x2416ca0...ad6ec
VerifiableInference 0xCca535A35F944EF45127c003c62668574EB1F3f7 0x505980e...30358c
AgentCommunication 0x4c5c017D4C6B54A6995C118AC24B61888DCe83d2 0x74d9f52...592658
AgentGovernance 0xFCd8b261F9Ec07cE952666511B146e3863A0E9fc 0xeaf6890...f51079
AgentDeFi 0xc81067a5c6A364797c407d31D329a889e87D6366 0x55cbf4c...569805

Linea Sepolia (ZK-Rollup)

Contract Address
AgentRegistry 0x40C59CB2B8b956eA24dFDF04Fca2b622c87ede10
AgentWallet 0x7947184b8d05ddC9276Be4810a63079bf15694DC
AgentMemory 0xf98FDC9ea4E80dF6EF2D3c0f8DaE1EEE5444291c
AgentReputation 0x6b80daBe56a9B2987787a9C849a0287306aE5769
VerifiableInference 0x65E65BDFdC592A1c90869B791aa23e841EEeF8a2
AgentCommunication 0xE0C5C522CEb2380Fd727Bf92A51Aa3b8C8870C5A
AgentGovernance 0x5191864E1eF9d556B22158dADE6631E4fAEF235d
AgentDeFi 0x2AFBDA43e6311FB9C72ac8AEdC253FD84cD07288

Deployer: 0x7F75bfAfeD5c96584774c7F2Bc33F3bF887BC739

Why This Exists

The AI agent economy is exploding — 85% of on-chain volume in 2026 is agent-generated. But existing frameworks (ElizaOS, Virtuals, etc.) are off-chain:

  • No on-chain agent state
  • No verifiable AI inference
  • No cross-agent communication protocol
  • No agent reputation system
  • No DAO governance for agent fleets

AgentChain fixes this. Everything is on-chain, verifiable, and trustless.

Architecture

┌──────────────────────────────────────────────────────────────┐
│                     AGENTCHAIN STACK                         │
├──────────────────────────────────────────────────────────────┤
│                                                              │
│  ┌──────────────┐  ┌──────────────┐  ┌──────────────┐      │
│  │   Agent      │  │   Agent      │  │   Agent      │      │
│  │  Governance  │  │  DeFi        │  │ Communication│      │
│  │  (DAO)       │  │  (Trading)   │  │  (A2A)       │      │
│  └──────┬───────┘  └──────┬───────┘  └──────┬───────┘      │
│         │                 │                 │                │
│  ┌──────┴─────────────────┴─────────────────┴──────┐        │
│  │              Core Infrastructure                │        │
│  ├─────────────────────────────────────────────────┤        │
│  │  AgentRegistry │ AgentWallet │ AgentMemory      │        │
│  │  AgentReputation │ VerifiableInference          │        │
│  └─────────────────────────────────────────────────┘        │
│                                                              │
└──────────────────────────────────────────────────────────────┘

Smart Contracts

AgentRegistry.sol — Agent Identity

  • Register agents on-chain with model hash + capabilities
  • Track owner, version, verification status
  • Query by model hash, owner, or capability

AgentWallet.sol — Agent Finance

  • Each agent has its own on-chain wallet
  • ETH + ERC20 support
  • Spending policies (per-tx limit, daily limit)
  • Approval system for large transactions

AgentMemory.sol — Agent Memory

  • On-chain key-value memory storage
  • TTL-based expiration
  • Memory blocks (chain of committed states)
  • Cross-agent memory sharing

AgentReputation.sol — Agent Trust

  • Score 0-10000 based on task success/failure
  • Staking + slashing mechanism
  • Full task history
  • Success rate tracking

VerifiableInference.sol — AI Verification

  • ZK proof verification for model execution
  • Register models with verifier contracts
  • Request → Submit Proof → Verify flow
  • Cryptographic guarantee of correct inference

AgentCommunication.sol — Agent-to-Agent

  • Direct agent messaging
  • Conversation tracking
  • Skill request/fulfillment protocol
  • Encrypted message support

AgentGovernance.sol — Agent DAO

  • Create agent fleets (groups of agents)
  • On-chain proposals + voting
  • Execute arbitrary contract calls
  • Delegation system

AgentDeFi.sol — Agent Trading

  • Strategy creation + management
  • Position tracking (entry price, PnL)
  • Trade execution + history
  • Yield claiming

Use Cases

  1. Autonomous Trading Agents — Agents manage portfolios, execute strategies, claim yield
  2. AI Agent Fleets — DAOs govern groups of agents working together
  3. Verifiable AI Services — Prove AI ran correctly without revealing the model
  4. Agent Marketplaces — Agents hire other agents for skills
  5. Cross-Chain Agent Operations — Agents operate across multiple chains via CCIP

Setup

git clone https://github.com/Souravjoy7/agent-chain.git
cd agent-chain
npm install
npx hardhat compile

Deployment

export DEPLOYER_PRIVATE_KEY=0x...
npx hardhat run scripts/deploy.js --network base_sepolia
npx hardhat run scripts/deploy.js --network linea_sepolia

Tech Stack

  • Solidity 0.8.24
  • Hardhat 3
  • OpenZeppelin v5
  • Ethers v6

License

MIT

About

AgentChain — On-Chain AI Agent Framework. Autonomous agents with wallets, memory, reputation, and governance.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages