ERC-8004 Register
Register AI agents on-chain, update metadata, validate registrations, and auto-fix broken profiles via the ERC-8004 Identity Registry. Supports Base, Ethereum, Polygon, Monad, BNB.
- License 许可
- AGPL-3.0
- 最近更新
- 2026-11-15
- Stars
- ★ 81
- Forks
- 17
01 前言 Front Matter
- name
- ERC-8004 Register
- description
- Register AI agents on-chain, update metadata, validate registrations, and auto-fix broken profiles via the ERC-8004 Identity Registry. Supports Base, Ethereum, Polygon, Monad, BNB.
02 资源文件 6
- 参考文档_meta.json135 B
- 参考文档README.md2.4 KB
- 脚本scripts/register.py32.4 KB
- 参考文档skill-card.md2.4 KB
- 参考文档SOURCE.md264 B
- 参考文档TRUST.auto.yaml2.1 KB
03 SKILL.md 正文
ERC-8004 Registration Skill
Register, update, validate, and fix agents on-chain via the ERC-8004 Identity Registry.
Use This When...
- "Register my agent on-chain"
- "I need to create a new ERC-8004 agent"
- "Update my agent's metadata"
- "Check if my agent registration is valid"
- "Fix my agent's registration issues"
- "Show my agent's on-chain info"
- "What agents do I own?"
- "Health check my agents"
Commands
register
Register a new agent on-chain.
python scripts/register.py register --name "AgentName" --description "Description" [--image URL] [--chain base]
Options:
--name(required): Agent name--description(required): Agent description--image: Image URL (must be https://)--chain: Blockchain (base, ethereum, polygon, monad, bnb). Default: base
update
Update an existing agent's metadata.
python scripts/register.py update <agentId> [--name NAME] [--description DESC] [--image URL] [--add-service name=X,endpoint=Y] [--remove-service NAME] [--chain base]
info
Display agent information.
python scripts/register.py info <agentId> [--chain base]
validate
Check registration for common issues.
python scripts/register.py validate <agentId> [--chain base]
Checks:
- Missing
typefield - Local-path images (/home/..., ./, file://)
- Empty name/description
- Missing registrations array
- Unreachable image URLs
fix
Auto-fix common registration issues.
python scripts/register.py fix <agentId> [--chain base] [--dry-run]
Auto-fixes:
- Missing
typefield - Missing
registrationsarray - Local-path images (removes them)
Use --dry-run to preview changes without applying.
self-check
Check all agents owned by your wallet.
python scripts/register.py self-check
Queries Agentscan for your agents, validates each, and prints a health report.
Cross-Skill Workflows
Post-Registration Flow
# 1. Register new agent
python scripts/register.py register --name "MyBot" --description "Trading assistant"
# 2. Validate the registration
python scripts/register.py validate 42 --chain base
# 3. Check initial reputation (from erc8004-reputation skill)
python scripts/reputation.py lookup 42 --chain base
# 4. Monitor for discovery (from erc8004-discover skill)
python scripts/discover.py info 42
Periodic Health Check
# Run self-check to validate all your agents
python scripts/register.py self-check
# Fix any issues found
python scripts/register.py fix 42 --chain base
Heartbeat Integration
For automated monitoring, run self-check periodically:
# Cron: check health every hour
0 * * * * cd /path/to/skill && python scripts/register.py self-check >> /var/log/agent-health.log 2>&1
# Or in a script:
#!/bin/bash
python scripts/register.py self-check
if [ $? -ne 0 ]; then
echo "Agent health check failed!" | notify-send
fi
Wallet Configuration
Set one of these environment variables:
export ERC8004_MNEMONIC="your twelve word mnemonic phrase here"
# OR
export ERC8004_PRIVATE_KEY="0x..."
Contract
Identity Registry: 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432 (same on all chains)
Supported Chains
| Chain | ID | Explorer |
|---|---|---|
| Base | 8453 | basescan.org |
| Ethereum | 1 | etherscan.io |
| Polygon | 137 | polygonscan.com |
| Monad | 143 | explorer.monad.xyz |
| BNB | 56 | bscscan.com |
Dependencies
pip install web3 eth-account
Related Skills
- erc8004-discover: Find and monitor agents
- erc8004-reputation: Rate agents and check trust scores
04 同仓库更多 Skills
troves
Deposit and withdraw from Troves DeFi yield vault strategies on Starknet. View available strategies, check positions, and manage vault deposits. Use this skill when the user mentions Troves, vault, yield vault, DeFi vault, strategy, yield farming, vault deposit, vault withdraw, earning yield through vaults, passive yield strategies, or wants to deposit into or withdraw from a yield strategy — even if they don't say "Troves" explicitly.
trade
Swap tokens on Starknet via Fibrous DEX aggregator. Supports per-provider selection (avnu, ekubo, or auto to race all). Use this skill when the user wants to swap, exchange, trade, convert, buy, or sell one token for another on Starknet. Also use when the user asks about token prices, exchange rates, DEX routing, best swap route, or wants to check how much they would receive for a given amount — even if they don't explicitly say "swap".
staking
Stake, unstake, claim, and compound rewards for STRK, WBTC, tBTC, SolvBTC, and LBTC on Starknet. View validators, pools, and staking positions. Use this skill when the user mentions staking, delegating, validators, staking pools, rewards, compounding, unstaking, earning yield, passive income on crypto, or wants to earn on their STRK or BTC tokens — even if they don't say "stake" explicitly.
send
Send STRK, ETH, or any ERC-20 token to a Starknet address. Supports simulation (dry-run) before execution. Use this skill when the user wants to send, transfer, pay, tip, or move tokens to another wallet address on Starknet. Also trigger when the user mentions sending funds to someone, making a payment, transferring assets, or moving crypto to a specific address — even if they just say "pay 10 STRK to 0x...".
portfolio
View a comprehensive DeFi portfolio dashboard and optimize portfolio allocation via automated rebalancing. Use this skill when the user wants an overview, summary, dashboard, total value, net worth, portfolio rebalancing, target allocation, or wants to see all their DeFi positions across Starknet at once. Also trigger when the user asks "what do I have", "show me everything", "how much am I worth", "my positions", "my investments", "rebalance my portfolio", "I want 50% ETH", "optimize my holdings", or any request for a holistic view of their Starknet holdings — even if they don't explicitly say "portfolio".
multi-swap
Execute multiple token swaps in a single Starknet transaction via Fibrous (default). Supports per-provider selection (avnu, ekubo, or auto to race all). Supports 2-3 swap pairs bundled into one multicall. Use this skill when the user wants to swap multiple token pairs at once, do batch swaps, execute several trades simultaneously, perform parallel swaps, or do bulk trading in one transaction. Also trigger when the user mentions "two swaps", "three swaps", "swap X and Y at the same time", or wants to convert multiple tokens in a single call.