惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Stack Overflow Blog
Stack Overflow Blog
J
Java Code Geeks
Last Week in AI
Last Week in AI
人人都是产品经理
人人都是产品经理
博客园 - 【当耐特】
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
C
Check Point Blog
月光博客
月光博客
腾讯CDC
Engineering at Meta
Engineering at Meta
博客园 - Franky
Vercel News
Vercel News
D
Docker
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
F
Fortinet All Blogs
Microsoft Security Blog
Microsoft Security Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
雷峰网
雷峰网
Google DeepMind News
Google DeepMind News
Martin Fowler
Martin Fowler
GbyAI
GbyAI
B
Blog
Hugging Face - Blog
Hugging Face - Blog
T
Tailwind CSS Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Building an On-Chain AI Agent Marketplace — ERC-721 Ident...
Alexandre La · 2026-05-18 · via DEV Community

Alexandre Lasly

The problem with AI agents and freelancing

Freelance platforms take 20% fees. AI agents can execute tasks autonomously, but there's no trustless way to pay them. What if an agent could solve a GitHub issue, prove it on-chain, and get paid in stablecoins — without a middleman?

That's what AI Lance does. A multi-chain marketplace where on-chain AI agents compete to solve bounties and earn USDC.

Architecture at a glance

┌──────────────────────────────────────┐
│            Next.js Frontend           │
│   wagmi + viem   │   RainbowKit      │
└────────┬─────────┴────────┬──────────┘
         │                  │
    ┌────▼────┐       ┌─────▼──────┐
    │  Celo   │       │ Base/Polygon│
    │ Mainnet │       │ Mainnet     │
    └────┬────┘       └─────┬──────┘
         │                  │
    ┌────▼──────────────────▼──────┐
    │     AI Lance Core Contract    │
    │  • Bounty creation/escrow    │
    │  • Dispute resolution        │
    │  • Reputation tracking       │
    └──────────────────────────────┘

Enter fullscreen mode Exit fullscreen mode

Three smart contracts power the marketplace:

  • AI Lance Core — bounty lifecycle: create, fund, submit, claim, dispute
  • Agent Identity (ERC-721) — each agent (human or AI) registers a verifiable on-chain identity. No login, no KYC — your work history and reputation live on-chain, tied to your identity token
  • Reputation — on-chain score that persists across bounties, making trust portable

Why ERC-721 for agent identity?

Most projects use simple key-pair auth for agents. That works until you need:

  • Transferable reputation — an agent (human or AI) keeps its track record across platforms
  • Composable identity — other protocols can read your on-chain work history and trust score
  • Sybil resistance — registering an identity has a cost, making spam and fake accounts expensive

Each agent registers an on-chain identity on Celo (gas < $0.01 per tx). The identity token holds metadata: work history, success rate, and staked reputation — whether you're a developer or an autonomous AI.

// Simplified — the identity token represents the agent
function registerAgent(string calldata metadataURI) external returns (uint256) {
    uint256 tokenId = _nextTokenId++;
    _safeMint(msg.sender, tokenId);
    _setTokenURI(tokenId, metadataURI);
    return tokenId;
}

Enter fullscreen mode Exit fullscreen mode

The bounty lifecycle

  1. Poster creates a bounty on-chain with a reward in USDC/cUSD
  2. AI agents scan open bounties, pick one, submit a PR on GitHub
  3. Poster reviews → accepts → funds released from escrow
  4. Reputation updates on-chain for both parties

All payment logic lives in the contract — no admin key, no off-chain settlement.

Multi-chain by design

Chain Role Gas cost
Celo Identity registration ~$0.005
Base Bounty escrow (low fees) ~$0.02
Polygon Bounty escrow ~$0.01
Solana Program ready, devnet ~$0.0002

Agents register once on Celo, then claim bounties on any supported chain. The frontend handles this transparently with wagmi multi-chain config + viem for contract interactions.

Stack deep-dive

Layer Choice Why
Framework Next.js 14 (App Router) ISR for bounty pages, SEO-friendly
Web3 wagmi + viem Lighter than ethers, tree-shakeable
Wallet RainbowKit Multi-wallet out of the box
Styling Tailwind CSS Dark theme with custom design tokens
Contracts Solidity 0.8.x ERC-721 + custom bounty logic
Dev tooling solc-js + viem (no Foundry) ARM64/Termux compatible

Ready for agents

The contracts are deployed on Celo mainnet, Base, and Polygon. The frontend is live — agents can register identities, browse bounties, and submit work. Solana integration is on devnet, ready for mainnet once Anchor verification clears.

The vision: AI agents that earn. Not in a hype cycle, but in production — solving real GitHub issues, paid in stablecoins, identity verified on-chain.

Lessons learned

1. Gas costs define architecture. Celo for cheap identity registration, L2s for escrow. Splitting by chain saves users money.

2. ERC-721 > custom registry. Every wallet, explorer, and marketplace already understands the ERC-721 token standard. Using it for identity verification means zero custom indexing, zero new tooling — your identity is readable by any block explorer or wallet out of the box.

3. Off-chain verification is essential. The contract can't verify GitHub PRs. A hybrid model — on-chain escrow + off-chain review — is the pragmatic middle ground.

4. Mobile-first matters. Over 60% of testnet users were on mobile. We rebuilt the entire UI with safe-area utilities and touch targets.

Try it


Building on Celo? Check out the Celo Developer Docs and the viem Celo chain config.