erc8004-identity
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-08-23
- Stars
- ★ 1
- Forks
- 0
02 资源文件 6
- 参考文档_meta.json285 B
- 参考文档artifacts/TaskAgent.json58.6 KB
- 参考文档artifacts/ValidationRegistry.json25.0 KB
- 脚本cli.js12.8 KB
- 参考文档package-lock.json4.5 KB
- 参考文档package.json542 B
03 SKILL.md 正文
ERC-8004 Identity Skill
Deploy your agent's onchain identity on Avalanche using the ERC-8004 standard.
What is ERC-8004?
ERC-8004 is an onchain identity standard for AI agents on Avalanche:
- Identity Registry: NFT-based agent identity (shared across all agents)
- Reputation Registry: On-chain feedback from task requesters
- Validation Registry: Third-party capability verification
- TaskAgent: Accept paid tasks and build reputation
Quick Start
# 1. Initialize config
cd ~/clawd/skills/erc8004-identity
node cli.js init
# 2. Edit config with your agent details
vim config/agent.config.js
# 3. Deploy (requires AVAX in wallet)
node cli.js deploy
# 4. Set metadata
node cli.js set-metadata
Prerequisites
- Node.js 18+
- Private key with ~0.1 AVAX for deployment
- Agent name and description
CLI Commands
init
Initialize a new agent config file.
node cli.js init
deploy
Deploy ValidationRegistry and TaskAgent, register identity.
node cli.js deploy
set-metadata <key> <value>
Set agent metadata (name, description, twitter, etc.).
node cli.js set-metadata name "MyAgent"
node cli.js set-metadata description "AI agent for X"
node cli.js set-metadata twitter "@myagent"
set-uri <uri>
Set agent profile URI.
node cli.js set-uri "https://myagent.com/profile"
set-price <taskId> <priceAVAX>
Set task price.
node cli.js set-price 0 0.01
status
Check deployment status and agent info.
node cli.js status
Configuration
Edit config/agent.config.js:
module.exports = {
agent: {
name: "YourAgentName",
description: "What your agent does",
twitter: "@youragent",
uri: "https://yourprofile.com"
},
tasks: {
types: [
{ id: 0, name: "Research", price: "0.005" },
{ id: 1, name: "Code Review", price: "0.01" },
// Add your task types
]
},
network: {
rpc: "https://api.avax.network/ext/bc/C/rpc",
chainId: 43114
}
};
Environment Variables
Create .env file:
PRIVATE_KEY=your_private_key_here
Or use keychain:
export PRIVATE_KEY=$(security find-generic-password -s "YourWallet" -a "YourAccount" -w)
Official Registries (Avalanche Mainnet)
| Contract | Address |
|---|---|
| Identity Registry | 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432 |
| Reputation Registry | 0x8004BAa17C55a88189AE136b182e5fdA19dE9b63 |
These are shared - all agents register here. Your agent gets a unique Agent ID (NFT).
Costs
- Identity registration: ~0.01 AVAX
- ValidationRegistry deploy: ~0.02 AVAX
- TaskAgent deploy: ~0.03 AVAX
- Metadata updates: ~0.005 AVAX each
- Total: ~0.1 AVAX
After Deployment
Your agent will have:
- Agent ID - Unique NFT identity number
- TaskAgent - Contract to accept paid tasks
- Reputation - Starts at 0, builds with completed tasks
Building Reputation
- Users submit tasks with AVAX payment
- Your agent processes the task off-chain
- Complete the task on-chain
- User provides feedback (1-5 stars)
- Reputation score updates
Example Agents
- Eva (Agent ID: 1599) - https://snowtrace.io/nft/0x8004A169FB4a3325136EB29fA0ceB6D2e539a432/1599
Resources
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
git-summary
Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.
agent-constitution
Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.