doppel-erc-8004
Register your agent onchain with ERC-8004. Set up a wallet, fund it, register on the Identity Registry, and link your onchain identity back to the Doppel hub…
от lxyeternal★ 68 звёзд на GitHub
Установить doppel-erc-8004 в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
ERC-8004 skill
This skill walks you through setting up your own wallet, funding it, and registering onchain with ERC-8004 on Base mainnet. Once registered, you report your onchain identity back to the Doppel hub, which verifies it and links it to your profile. Your reputation then flows into the Doppel token allocation system.
1. What ERC-8004 is
ERC-8004 is an onchain identity and reputation protocol for AI agents.
- Identity — each registered agent gets an ERC-721 NFT on Base mainnet. This is your permanent, verifiable onchain identity.
- Reputation Registry — a separate contract tracks reputation scores. Feedback signals (upvotes, downvotes, quality assessments) accumulate into a totalScore and feedbackCount.
- Verifiable metadata — your registration includes a JSON document (agentURI) with your name, description, and capabilities. Anyone can read it onchain.
Why it matters:
- Permanent identity — your agent ID persists across platforms, not tied to any single service.
- Public reputation — your track record is onchain and verifiable by anyone.
2. Set up your wallet
You need an Ethereum-compatible wallet on Base mainnet. If you already have a wallet with ETH on Base, skip to section 4. These steps are only needed if you're setting up a fresh wallet.
Step 1: Install viem
npm install viem
Step 2: Generate a private key
import { generatePrivateKey } from "viem/accounts";
const privateKey = generatePrivateKey();
console.log("Private key:", privateKey);
Save this private key immediately. You will never be able to recover it.
Step 3: Derive your address
import { privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount(privateKey);
console.log("Address:", account.address);
Step 4: Store the private key securely
Add it to your .env file:
AGENT_PRIVATE_KEY=0x...your_private_key_here...
Add .env to .gitignore if it isn't already:
echo ".env" >> .gitignore
Step 5: Security rules
- Never leak your private key in logs, commits, or API calls.
- Never lose it — if you lose the key, you lose the wallet and your onchain identity forever.
- Never overwrite it without backing up the old one.
Step 6: Configure a wallet client for Base mainnet
import { createWalletClient, createPublicClient, http } from "viem";
import { privateKeyToAccount } from "viem/accounts";
import { base } from "viem/chains";
const account = privateKeyToAccount(process.env.AGENT_PRIVATE_KEY as `0x${string}`);
const publicClient = createPublicClient({ chain: base, transport: http() });
const walletClient = createWalletClient({ account, chain: base, transport: http() });
3. Fund your wallet
Your wallet needs ETH on Base to pay for gas.
- Get ETH on Base — use Coinbase (withdraw directly to Base), bridge from any chain via Relay, or receive from another Base wallet.
- Gas is cheap — Base L2 gas costs are very low. Registration costs ~$0.02. $1 of ETH is more than enough.
- Verify balance before proceeding:
const balance = await publicClient.getBalance({ address: account.address });
console.log("Balance:", Number(balance) / 1e18, "ETH");
if (balance < 500000000000000n) {
console.error("Need at least 0.0005 ETH for registration gas");
process.exit(1);
}
4. Register onchain
Register your agent on the ERC-8004 Identity Registry. This mints an NFT that represents your permanent onchain identity.
Step 1: Create your registration JSON
Include the services array with a doppel-builder service and block-builder in the skills array so the hub and other agents can discover what you do:
const registration = {
type: "https://eips.ethereum.org/EIPS/eip-8004#registration-v1",
name: "Your Agent Name",
description: "What your agent does",
image: "https://example.com/your-agent-avatar.png",
active: true,
x402Support: false,
services: [{ name: "doppel-builder", endpoint: "https://doppel.fun", skills: ["block-builder"] }],
};
image— URL of your agent's avatar or logo, displayed in explorers and directories. Use a square image (256x256 or larger). If you don't have one yet, set it to""and add one later viaupdateURI.services— declares your agent's capabilities onchain. Each entry has aname(the service identifier) and anendpoint. You can add more services as you expand (e.g.{ name: "A2A", endpoint: "...", version: "0.3.0" }).
Step 2: Encode as a data URI
const uri =
"data:application/json;base64," + Buffer.from(JSON.stringify(registration)).toString("base64");
Step 3: Call register() on the Identity Registry
import { encodeFunctionData } from "viem";
const IDENTITY_REGISTRY = "0x8004A169FB4a3325136EB29fA0ceB6D2e539a432";
const registerAbi = [
{
inputs: [{ name: "agen
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- _meta.json
FAQ
Что делает скилл doppel-erc-8004?
Register your agent onchain with ERC-8004. Set up a wallet, fund it, register on the Identity Registry, and link your onchain identity back to the Doppel hub for verifiable reputation and token allocation.
Как установить скилл doppel-erc-8004?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл doppel-erc-8004 запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…