[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6G4561QXKTHDR8AS4KSKBXB":3,"skill-same:01M6G4561QXKTHDR8AS4KSKBXB":70},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":35,"linkOnly":36,"markdownContent":37,"markdownBody":38,"frontMatter":39,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":49,"install":50,"resources":63},"01M6G4561QXKTHDR8AS4KSKBXB","base-8004",null,"Register your AI agent onchain with ERC-8004 on Base. Set up a wallet, fund it, and register on the Identity Registry for permanent, verifiable identity and reputation.","kbarbel640-del\u002Fskills","kbarbel640-del","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F255315490?v=4","01M6CJPPQGCCESXMG3K7BBGQ5J","01M6CJPPX2PB2BCZERFVM2C2B3",1,"MIT","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fsquirt11e\u002Fbase-8004\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34],"base 8004","base","Wallet","with","it","org","register","erc-8004","onchain","ai agent","fund","up","reputation","SET","https","registry","identity","2026-11-10 10:12:30",false,"---\nname: base-8004\ndescription: Register your AI agent onchain with ERC-8004 on Base. Set up a wallet, fund it, and register on the Identity Registry for permanent, verifiable identity and reputation.\nmetadata: { \"openclaw\": { \"homepage\": \"https:\u002F\u002F8004.org\" } }\n---\n\n# Base-8004 Registration\n\nThis skill walks you through setting up your own wallet, funding it, and registering onchain with ERC-8004 on Base mainnet. Once registered, your agent has a permanent, verifiable onchain identity and can accumulate reputation.\n\n## 1. What ERC-8004 is\n\nERC-8004 is an onchain identity and reputation protocol for AI agents.\n\n- **Identity** — each registered agent gets an ERC-721 NFT on Base mainnet. This is your permanent, verifiable onchain identity.\n- **Reputation Registry** — a separate contract tracks reputation scores. Feedback signals (upvotes, downvotes, quality assessments) accumulate into a totalScore and feedbackCount.\n- **Verifiable metadata** — your registration includes a JSON document (agentURI) with your name, description, and capabilities. Anyone can read it onchain.\n\nWhy it matters:\n\n- **Permanent identity** — your agent ID persists across platforms, not tied to any single service.\n- **Public reputation** — your track record is onchain and verifiable by anyone.\n\n## 2. Set up your wallet\n\nYou 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.\n\n### Step 1: Install viem\n\n```bash\nnpm install viem\n```\n\n### Step 2: Generate a private key\n\n```typescript\nimport { generatePrivateKey } from \"viem\u002Faccounts\";\n\nconst privateKey = generatePrivateKey();\nconsole.log(\"Private key:\", privateKey);\n```\n\nSave this private key immediately. You will never be able to recover it.\n\n### Step 3: Derive your address\n\n```typescript\nimport { privateKeyToAccount } from \"viem\u002Faccounts\";\n\nconst account = privateKeyToAccount(privateKey);\nconsole.log(\"Address:\", account.address);\n```\n\n### Step 4: Store the private key securely\n\nAdd it to your `.env` file:\n\n```\nAGENT_PRIVATE_KEY=0x...your_private_key_here...\n```\n\nAdd `.env` to `.gitignore` if it isn't already:\n\n```\necho \".env\" >> .gitignore\n```\n\n### Step 5: Security rules\n\n- **Never leak** your private key in logs, commits, or API calls.\n- **Never lose** it — if you lose the key, you lose the wallet and your onchain identity forever.\n- **Never overwrite** it without backing up the old one.\n\n### Step 6: Configure a wallet client for Base mainnet\n\n```typescript\nimport { createWalletClient, createPublicClient, http } from \"viem\";\nimport { privateKeyToAccount } from \"viem\u002Faccounts\";\nimport { base } from \"viem\u002Fchains\";\n\nconst account = privateKeyToAccount(process.env.AGENT_PRIVATE_KEY as `0x${string}`);\nconst publicClient = createPublicClient({ chain: base, transport: http() });\nconst walletClient = createWalletClient({ account, chain: base, transport: http() });\n```\n\n## 3. Fund your wallet\n\nYour wallet needs ETH on Base to pay for gas.\n\n- **Get ETH on Base** — use Coinbase (withdraw directly to Base), bridge from any chain via [Relay](https:\u002F\u002Frelay.link\u002Fbridge), or receive from another Base wallet.\n- **Gas is cheap** — Base L2 gas costs are very low. Registration costs ~$0.02. $1 of ETH is more than enough.\n- **Verify balance before proceeding:**\n\n```typescript\nconst balance = await publicClient.getBalance({ address: account.address });\nconsole.log(\"Balance:\", Number(balance) \u002F 1e18, \"ETH\");\n\nif (balance \u003C 500000000000000n) {\n  console.error(\"Need at least 0.0005 ETH for registration gas\");\n  process.exit(1);\n}\n```\n\n## 4. Register onchain\n\nRegister your agent on the ERC-8004 Identity Registry. This mints an NFT that represents your permanent onchain identity.\n\n### Step 1: Create your registration JSON\n\nInclude the `services` array to declare your agent's capabilities so other agents and services can discover what you do:\n\n```typescript\nconst registration = {\n  type: \"https:\u002F\u002Feips.ethereum.org\u002FEIPS\u002Feip-8004#registration-v1\",\n  name: \"Your Agent Name\",\n  description: \"What your agent does\",\n  image: \"https:\u002F\u002Fexample.com\u002Fyour-agent-avatar.png\",\n  active: true,\n  x402Support: false,\n  services: [\n    { name: \"A2A\", endpoint: \"https:\u002F\u002Fyour-agent.example.com\u002Fa2a\", version: \"0.3.0\" },\n    { name: \"MCP\", endpoint: \"https:\u002F\u002Fyour-agent.example.com\u002Fmcp\", version: \"0.1.0\" },\n  ],\n};\n```\n\n- **`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 via `setAgentURI`.\n- **`services`** — declares your agent's capabilities onchain. Each entry has a `name` (the service identifier), an `endpoint`, and optionally a `version`. Common service types include `A2A` (Agent-to-Agent protocol) and `MCP` (Model Context Protocol).\n\n### Step 2: Encode as a data URI\n\n```typescript\nconst uri =\n  \"data:application\u002Fjson;base64,\" + Buffer.from(JSON.stringify(registration)).toString(\"base64\");\n```\n\n### Step 3: Call register() on the Identity Registry\n\n```typescript\nimport { encodeFunctionData } from \"viem\";\n\nconst IDENTITY_REGISTRY = \"0x8004A169FB4a3325136EB29fA0ceB6D2e539a432\";\n\nconst registerAbi = [\n  {\n    inputs: [{ name: \"agentURI\", type: \"string\" }],\n    name: \"register\",\n    outputs: [{ name: \"agentId\", type: \"uint256\" }],\n    stateMutability: \"nonpayable\",\n    type: \"function\",\n  },\n] as const;\n\n\u002F\u002F Estimate gas first\nconst gas = await publicClient.estimateGas({\n  account: account.address,\n  to: IDENTITY_REGISTRY,\n  data: encodeFunctionData({\n    abi: registerAbi,\n    functionName: \"register\",\n    args: [uri],\n  }),\n});\n\nconsole.log(\"Estimated gas:\", gas.toString());\n\n\u002F\u002F Send the transaction\nconst hash = await walletClient.writeContract({\n  address: IDENTITY_REGISTRY,\n  abi: registerAbi,\n  functionName: \"register\",\n  args: [uri],\n});\n\nconsole.log(\"TX hash:\", hash);\n```\n\n### Step 4: Parse the Transfer event to get your token ID\n\n```typescript\nconst receipt = await publicClient.waitForTransactionReceipt({ hash });\n\n\u002F\u002F ERC-721 Transfer event topic\nconst transferTopic = \"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\";\nconst transferLog = receipt.logs.find(\n  (log) =>\n    log.topics[0] === transferTopic && log.address.toLowerCase() === IDENTITY_REGISTRY.toLowerCase()\n);\n\nconst erc8004AgentId = transferLog?.topics[3]\n  ? BigInt(transferLog.topics[3]).toString()\n  : undefined;\n\nconsole.log(\"Your ERC-8004 Agent ID:\", erc8004AgentId);\n```\n\n### Step 5: Save your agent ID\n\nSave `erc8004AgentId` — this is your permanent onchain identity. Add it to your `.env`:\n\n```\nERC8004_AGENT_ID=42\n```\n\nYou can verify your registration on BaseScan:\n`https:\u002F\u002Fbasescan.org\u002Fnft\u002F0x8004A169FB4a3325136EB29fA0ceB6D2e539a432\u002F{your_agent_id}`\n\n## 5. Update your registration\n\nAfter your initial registration, you can update your agentURI (name, description, services) by calling `setAgentURI` on the Identity Registry. This lets you add new capabilities or change your metadata without re-registering.\n\n```typescript\nconst setAgentUriAbi = [\n  {\n    inputs: [\n      { name: \"agentId\", type: \"uint256\" },\n      { name: \"agentURI\", type: \"string\" },\n    ],\n    name: \"setAgentURI\",\n    outputs: [],\n    stateMutability: \"nonpayable\",\n    type: \"function\",\n  },\n] as const;\n\n\u002F\u002F Build updated registration JSON\nconst updatedRegistration = {\n  type: \"https:\u002F\u002Feips.ethereum.org\u002FEIPS\u002Feip-8004#registration-v1\",\n  name: \"Your Agent Name\",\n  description: \"Updated description\",\n  image: \"https:\u002F\u002Fexample.com\u002Fyour-agent-avatar.png\",\n  active: true,\n  x402Support: false,\n  services: [\n    { name: \"A2A\", endpoint: \"https:\u002F\u002Fyour-agent.example.com\u002Fa2a\", version: \"0.3.0\" },\n    { name: \"MCP\", endpoint: \"https:\u002F\u002Fyour-agent.example.com\u002Fmcp\", version: \"0.1.0\" },\n  ],\n};\n\nconst newUri =\n  \"data:application\u002Fjson;base64,\" +\n  Buffer.from(JSON.stringify(updatedRegistration)).toString(\"base64\");\n\nconst hash = await walletClient.writeContract({\n  address: IDENTITY_REGISTRY,\n  abi: setAgentUriAbi,\n  functionName: \"setAgentURI\",\n  args: [BigInt(process.env.ERC8004_AGENT_ID!), newUri],\n});\n\nconsole.log(\"URI updated, TX:\", hash);\n```\n\nOnly the token owner can call `setAgentURI`.\n\n## 6. Contract addresses and verification\n\n| Contract            | Address                                      | Chain        |\n| ------------------- | -------------------------------------------- | ------------ |\n| Identity Registry   | `0x8004A169FB4a3325136EB29fA0ceB6D2e539a432` | Base mainnet |\n| Reputation Registry | `0x8004BAa17C55a88189AE136b182e5fdA19dE9b63` | Base mainnet |\n\n**Verify on BaseScan:**\n\n- Identity Registry: [basescan.org\u002Faddress\u002F0x8004A169FB4a3325136EB29fA0ceB6D2e539a432](https:\u002F\u002Fbasescan.org\u002Faddress\u002F0x8004A169FB4a3325136EB29fA0ceB6D2e539a432)\n- Reputation Registry: [basescan.org\u002Faddress\u002F0x8004BAa17C55a88189AE136b182e5fdA19dE9b63](https:\u002F\u002Fbasescan.org\u002Faddress\u002F0x8004BAa17C55a88189AE136b182e5fdA19dE9b63)\n\n**Onchain query examples (read-only, no gas):**\n\n```typescript\nimport { createPublicClient, http } from \"viem\";\nimport { base } from \"viem\u002Fchains\";\n\nconst client = createPublicClient({ chain: base, transport: http() });\n\n\u002F\u002F Check who owns a token\nconst owner = await client.readContract({\n  address: \"0x8004A169FB4a3325136EB29fA0ceB6D2e539a432\",\n  abi: [\n    {\n      inputs: [{ name: \"agentId\", type: \"uint256\" }],\n      name: \"ownerOf\",\n      outputs: [{ name: \"\", type: \"address\" }],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n  ],\n  functionName: \"ownerOf\",\n  args: [42n],\n});\n\n\u002F\u002F Read an agent's metadata URI\nconst uri = await client.readContract({\n  address: \"0x8004A169FB4a3325136EB29fA0ceB6D2e539a432\",\n  abi: [\n    {\n      inputs: [{ name: \"tokenId\", type: \"uint256\" }],\n      name: \"tokenURI\",\n      outputs: [{ name: \"\", type: \"string\" }],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n  ],\n  functionName: \"tokenURI\",\n  args: [42n],\n});\n```\n\n## 7. Resources\n\n- [8004.org](https:\u002F\u002F8004.org) — ERC-8004 protocol\n- [Base](https:\u002F\u002Fbase.org) — Base L2 chain\n- [BaseScan](https:\u002F\u002Fbasescan.org) — Base block explorer\n- [viem](https:\u002F\u002Fviem.sh) — TypeScript Ethereum library\n\n## Summary\n\n1. **Set up wallet** — generate a private key, derive address, store securely.\n2. **Fund wallet** — get ETH on Base (Coinbase, bridge, or transfer). $1 is more than enough.\n3. **Register onchain** — call `register(agentURI)` on the Identity Registry with your services. Parse the Transfer event for your token ID.\n4. **Update registration** — call `setAgentURI` to change your metadata or add new services.\n","# Base-8004 Registration\n\nThis skill walks you through setting up your own wallet, funding it, and registering onchain with ERC-8004 on Base mainnet. Once registered, your agent has a permanent, verifiable onchain identity and can accumulate reputation.\n\n## 1. What ERC-8004 is\n\nERC-8004 is an onchain identity and reputation protocol for AI agents.\n\n- **Identity** — each registered agent gets an ERC-721 NFT on Base mainnet. This is your permanent, verifiable onchain identity.\n- **Reputation Registry** — a separate contract tracks reputation scores. Feedback signals (upvotes, downvotes, quality assessments) accumulate into a totalScore and feedbackCount.\n- **Verifiable metadata** — your registration includes a JSON document (agentURI) with your name, description, and capabilities. Anyone can read it onchain.\n\nWhy it matters:\n\n- **Permanent identity** — your agent ID persists across platforms, not tied to any single service.\n- **Public reputation** — your track record is onchain and verifiable by anyone.\n\n## 2. Set up your wallet\n\nYou 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.\n\n### Step 1: Install viem\n\n```bash\nnpm install viem\n```\n\n### Step 2: Generate a private key\n\n```typescript\nimport { generatePrivateKey } from \"viem\u002Faccounts\";\n\nconst privateKey = generatePrivateKey();\nconsole.log(\"Private key:\", privateKey);\n```\n\nSave this private key immediately. You will never be able to recover it.\n\n### Step 3: Derive your address\n\n```typescript\nimport { privateKeyToAccount } from \"viem\u002Faccounts\";\n\nconst account = privateKeyToAccount(privateKey);\nconsole.log(\"Address:\", account.address);\n```\n\n### Step 4: Store the private key securely\n\nAdd it to your `.env` file:\n\n```\nAGENT_PRIVATE_KEY=0x...your_private_key_here...\n```\n\nAdd `.env` to `.gitignore` if it isn't already:\n\n```\necho \".env\" >> .gitignore\n```\n\n### Step 5: Security rules\n\n- **Never leak** your private key in logs, commits, or API calls.\n- **Never lose** it — if you lose the key, you lose the wallet and your onchain identity forever.\n- **Never overwrite** it without backing up the old one.\n\n### Step 6: Configure a wallet client for Base mainnet\n\n```typescript\nimport { createWalletClient, createPublicClient, http } from \"viem\";\nimport { privateKeyToAccount } from \"viem\u002Faccounts\";\nimport { base } from \"viem\u002Fchains\";\n\nconst account = privateKeyToAccount(process.env.AGENT_PRIVATE_KEY as `0x${string}`);\nconst publicClient = createPublicClient({ chain: base, transport: http() });\nconst walletClient = createWalletClient({ account, chain: base, transport: http() });\n```\n\n## 3. Fund your wallet\n\nYour wallet needs ETH on Base to pay for gas.\n\n- **Get ETH on Base** — use Coinbase (withdraw directly to Base), bridge from any chain via [Relay](https:\u002F\u002Frelay.link\u002Fbridge), or receive from another Base wallet.\n- **Gas is cheap** — Base L2 gas costs are very low. Registration costs ~$0.02. $1 of ETH is more than enough.\n- **Verify balance before proceeding:**\n\n```typescript\nconst balance = await publicClient.getBalance({ address: account.address });\nconsole.log(\"Balance:\", Number(balance) \u002F 1e18, \"ETH\");\n\nif (balance \u003C 500000000000000n) {\n  console.error(\"Need at least 0.0005 ETH for registration gas\");\n  process.exit(1);\n}\n```\n\n## 4. Register onchain\n\nRegister your agent on the ERC-8004 Identity Registry. This mints an NFT that represents your permanent onchain identity.\n\n### Step 1: Create your registration JSON\n\nInclude the `services` array to declare your agent's capabilities so other agents and services can discover what you do:\n\n```typescript\nconst registration = {\n  type: \"https:\u002F\u002Feips.ethereum.org\u002FEIPS\u002Feip-8004#registration-v1\",\n  name: \"Your Agent Name\",\n  description: \"What your agent does\",\n  image: \"https:\u002F\u002Fexample.com\u002Fyour-agent-avatar.png\",\n  active: true,\n  x402Support: false,\n  services: [\n    { name: \"A2A\", endpoint: \"https:\u002F\u002Fyour-agent.example.com\u002Fa2a\", version: \"0.3.0\" },\n    { name: \"MCP\", endpoint: \"https:\u002F\u002Fyour-agent.example.com\u002Fmcp\", version: \"0.1.0\" },\n  ],\n};\n```\n\n- **`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 via `setAgentURI`.\n- **`services`** — declares your agent's capabilities onchain. Each entry has a `name` (the service identifier), an `endpoint`, and optionally a `version`. Common service types include `A2A` (Agent-to-Agent protocol) and `MCP` (Model Context Protocol).\n\n### Step 2: Encode as a data URI\n\n```typescript\nconst uri =\n  \"data:application\u002Fjson;base64,\" + Buffer.from(JSON.stringify(registration)).toString(\"base64\");\n```\n\n### Step 3: Call register() on the Identity Registry\n\n```typescript\nimport { encodeFunctionData } from \"viem\";\n\nconst IDENTITY_REGISTRY = \"0x8004A169FB4a3325136EB29fA0ceB6D2e539a432\";\n\nconst registerAbi = [\n  {\n    inputs: [{ name: \"agentURI\", type: \"string\" }],\n    name: \"register\",\n    outputs: [{ name: \"agentId\", type: \"uint256\" }],\n    stateMutability: \"nonpayable\",\n    type: \"function\",\n  },\n] as const;\n\n\u002F\u002F Estimate gas first\nconst gas = await publicClient.estimateGas({\n  account: account.address,\n  to: IDENTITY_REGISTRY,\n  data: encodeFunctionData({\n    abi: registerAbi,\n    functionName: \"register\",\n    args: [uri],\n  }),\n});\n\nconsole.log(\"Estimated gas:\", gas.toString());\n\n\u002F\u002F Send the transaction\nconst hash = await walletClient.writeContract({\n  address: IDENTITY_REGISTRY,\n  abi: registerAbi,\n  functionName: \"register\",\n  args: [uri],\n});\n\nconsole.log(\"TX hash:\", hash);\n```\n\n### Step 4: Parse the Transfer event to get your token ID\n\n```typescript\nconst receipt = await publicClient.waitForTransactionReceipt({ hash });\n\n\u002F\u002F ERC-721 Transfer event topic\nconst transferTopic = \"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\";\nconst transferLog = receipt.logs.find(\n  (log) =>\n    log.topics[0] === transferTopic && log.address.toLowerCase() === IDENTITY_REGISTRY.toLowerCase()\n);\n\nconst erc8004AgentId = transferLog?.topics[3]\n  ? BigInt(transferLog.topics[3]).toString()\n  : undefined;\n\nconsole.log(\"Your ERC-8004 Agent ID:\", erc8004AgentId);\n```\n\n### Step 5: Save your agent ID\n\nSave `erc8004AgentId` — this is your permanent onchain identity. Add it to your `.env`:\n\n```\nERC8004_AGENT_ID=42\n```\n\nYou can verify your registration on BaseScan:\n`https:\u002F\u002Fbasescan.org\u002Fnft\u002F0x8004A169FB4a3325136EB29fA0ceB6D2e539a432\u002F{your_agent_id}`\n\n## 5. Update your registration\n\nAfter your initial registration, you can update your agentURI (name, description, services) by calling `setAgentURI` on the Identity Registry. This lets you add new capabilities or change your metadata without re-registering.\n\n```typescript\nconst setAgentUriAbi = [\n  {\n    inputs: [\n      { name: \"agentId\", type: \"uint256\" },\n      { name: \"agentURI\", type: \"string\" },\n    ],\n    name: \"setAgentURI\",\n    outputs: [],\n    stateMutability: \"nonpayable\",\n    type: \"function\",\n  },\n] as const;\n\n\u002F\u002F Build updated registration JSON\nconst updatedRegistration = {\n  type: \"https:\u002F\u002Feips.ethereum.org\u002FEIPS\u002Feip-8004#registration-v1\",\n  name: \"Your Agent Name\",\n  description: \"Updated description\",\n  image: \"https:\u002F\u002Fexample.com\u002Fyour-agent-avatar.png\",\n  active: true,\n  x402Support: false,\n  services: [\n    { name: \"A2A\", endpoint: \"https:\u002F\u002Fyour-agent.example.com\u002Fa2a\", version: \"0.3.0\" },\n    { name: \"MCP\", endpoint: \"https:\u002F\u002Fyour-agent.example.com\u002Fmcp\", version: \"0.1.0\" },\n  ],\n};\n\nconst newUri =\n  \"data:application\u002Fjson;base64,\" +\n  Buffer.from(JSON.stringify(updatedRegistration)).toString(\"base64\");\n\nconst hash = await walletClient.writeContract({\n  address: IDENTITY_REGISTRY,\n  abi: setAgentUriAbi,\n  functionName: \"setAgentURI\",\n  args: [BigInt(process.env.ERC8004_AGENT_ID!), newUri],\n});\n\nconsole.log(\"URI updated, TX:\", hash);\n```\n\nOnly the token owner can call `setAgentURI`.\n\n## 6. Contract addresses and verification\n\n| Contract            | Address                                      | Chain        |\n| ------------------- | -------------------------------------------- | ------------ |\n| Identity Registry   | `0x8004A169FB4a3325136EB29fA0ceB6D2e539a432` | Base mainnet |\n| Reputation Registry | `0x8004BAa17C55a88189AE136b182e5fdA19dE9b63` | Base mainnet |\n\n**Verify on BaseScan:**\n\n- Identity Registry: [basescan.org\u002Faddress\u002F0x8004A169FB4a3325136EB29fA0ceB6D2e539a432](https:\u002F\u002Fbasescan.org\u002Faddress\u002F0x8004A169FB4a3325136EB29fA0ceB6D2e539a432)\n- Reputation Registry: [basescan.org\u002Faddress\u002F0x8004BAa17C55a88189AE136b182e5fdA19dE9b63](https:\u002F\u002Fbasescan.org\u002Faddress\u002F0x8004BAa17C55a88189AE136b182e5fdA19dE9b63)\n\n**Onchain query examples (read-only, no gas):**\n\n```typescript\nimport { createPublicClient, http } from \"viem\";\nimport { base } from \"viem\u002Fchains\";\n\nconst client = createPublicClient({ chain: base, transport: http() });\n\n\u002F\u002F Check who owns a token\nconst owner = await client.readContract({\n  address: \"0x8004A169FB4a3325136EB29fA0ceB6D2e539a432\",\n  abi: [\n    {\n      inputs: [{ name: \"agentId\", type: \"uint256\" }],\n      name: \"ownerOf\",\n      outputs: [{ name: \"\", type: \"address\" }],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n  ],\n  functionName: \"ownerOf\",\n  args: [42n],\n});\n\n\u002F\u002F Read an agent's metadata URI\nconst uri = await client.readContract({\n  address: \"0x8004A169FB4a3325136EB29fA0ceB6D2e539a432\",\n  abi: [\n    {\n      inputs: [{ name: \"tokenId\", type: \"uint256\" }],\n      name: \"tokenURI\",\n      outputs: [{ name: \"\", type: \"string\" }],\n      stateMutability: \"view\",\n      type: \"function\",\n    },\n  ],\n  functionName: \"tokenURI\",\n  args: [42n],\n});\n```\n\n## 7. Resources\n\n- [8004.org](https:\u002F\u002F8004.org) — ERC-8004 protocol\n- [Base](https:\u002F\u002Fbase.org) — Base L2 chain\n- [BaseScan](https:\u002F\u002Fbasescan.org) — Base block explorer\n- [viem](https:\u002F\u002Fviem.sh) — TypeScript Ethereum library\n\n## Summary\n\n1. **Set up wallet** — generate a private key, derive address, store securely.\n2. **Fund wallet** — get ETH on Base (Coinbase, bridge, or transfer). $1 is more than enough.\n3. **Register onchain** — call `register(agentURI)` on the Identity Registry with your services. Parse the Transfer event for your token ID.\n4. **Update registration** — call `setAgentURI` to change your metadata or add new services.\n",{"name":5,"metadata":40,"description":7},{"openclaw":41},{"homepage":42},"https:\u002F\u002F8004.org","main","e7e336ac628c3e3bd771aff1aaa469c93778f94a","skills\u002Fsquirt11e\u002Fbase-8004",0,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del","2026-08-23 22:39:37",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add kbarbel640-del\u002Fskills --skill base-8004",{"tool":56,"command":57},"bunx","bunx skills add kbarbel640-del\u002Fskills --skill base-8004",{"tool":59,"command":60},"pnpm","pnpm dlx skills add kbarbel640-del\u002Fskills --skill base-8004","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fsquirt11e\u002Fbase-8004\u002FSKILL.md",true,[64],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"_meta.json","REFERENCE","参考文档",273,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fsquirt11e\u002Fbase-8004\u002F_meta.json",[71,95,119,137,142,162],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":35},"01M6G8J55967D6281ACMKAKTEQ","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.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[78,79,80,21,81,82,83,84,85,86,87,88,89,90,91,92,32,93,94],"crowd prompting","prompting","api","tokens","domain","world","prompts","operations","instructions","text","tool","system","improve","productivity","marketplace","content","ai agents",{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":35},"01M6G8J0PKPAYVET6BWE8W4C26","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).","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[102,80,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,84,118],"dilemm ai","arena","analyze","browser","openclaw agent","create","automation","browser automation","bot","openclaw","design","strategy","headless","compete","submit","matchmaking","use",{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":35},"01M6G8HWAF3K9SW7NP3Z83CPJ6","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\u002Fcategory\u002Finterest, viewing paper details with comments, or submitting paper reviews via API at http:\u002F\u002F150.158.152.82:8000.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Fweak-accept\u002FSKILL.md",[],[126,127,128,129,130,131,132,21,133,116,118,134,80,135,136],"arxiv paper reviews","reviews","arxiv","paper","crawler","papers","comments","fetch","read","http","via",{"skillNo":138,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":35},"01M6G8HQJ7N7WMY6YV7D7SSJ16","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[129,128,127,126,136,131,132,21,130,116,118,133,134,80,135],{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":35},"01M6G8HM95Y64JNVFC2HN4E2BG","git-summary","Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzweack\u002Fgit-summary\u002FSKILL.md",[],[149,150,151,152,153,154,155,156,157,158,159,160,161],"git","summary","git summary","commits","repository","win32","status","linux","contributors","true","quick","get","branches",{"skillNo":163,"name":164,"nameZh":6,"description":165,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":166,"categories":167,"keywords":168,"publishedAt":35},"01M6G8HGEGF05CNEJCGVYFSC4R","agent-constitution","Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fztsalexey\u002Fagent-constitution\u002FSKILL.md",[],[169,170,171,172,21,173,19,43,174,134,175,176,177,178,179,32,180,181,182],"agent constitution","constitution","contracts","tree","query","log","check","Rules","projects","compliance","actions","state","governance","github"]