basecred-8004-registration

Review·Scanned 2/17/2026

This skill provides an interactive ERC-8004 agent registration flow that auto-prefills from IDENTITY.md, SOUL.md, USER.md, and .env, previews a draft, and submits on-chain via node scripts/register.mjs. It requires wallet secrets (PRIVATE_KEY/AGENT_PRIVATE_KEY/MAIN_WALLET_PRIVATE_KEY), runs shell commands like source /path/to/.env, and connects to RPC endpoints such as https://mainnet.base.org.

from clawhub.ai·v53c7f15·85.1 KB·0 installs
Scanned from 1.0.0 at 53c7f15 · Transparency log ↗
$ vett add clawhub.ai/callmedas69/basecred-8004-registrationReview findings below

basecred-8004-registration

Interactive ERC-8004 agent registration for OpenClaw agents. Register your AI agent on the ERC-8004 on-chain identity registry through a guided chat experience.

Features

  • 🗂️ Auto-prefill — fills from agent identity files, .env, and context
  • 📋 Full draft preview — all fields with ✅/⚠️ status before submitting
  • ✏️ Inline section editing — tap buttons to edit Basic Info, Endpoints, Skills, or Config
  • 💬 Instant button feedback — immediate acknowledgment on every tap
  • 🔘 Multi-select toggles — skills, domains, and trust models as toggleable buttons
  • ⛓️ Multi-chain — Base (default), Ethereum, Polygon, BNB, Arbitrum, Celo, Gnosis, Scroll
  • 💾 Fully onchain — default storage on-chain, no IPFS dependency
  • 🔑 Wallet flexibility — paste an address or auto-detect from private key
  • 🔐 EIP-712 wallet linking — sets agent wallet after registration
  • 📄 8004.org compatible — imports/exports the standard 8004.org JSON template
  • Progress updates — step-by-step feedback during on-chain registration

How It Works

  1. Auto-prefill — agent fills every field it can from identity files and .env
  2. Config explainer — explains defaults (chain, storage, trust, x402, wallet) with alternatives
  3. Draft + buttons — shows full draft as single message with inline edit/register buttons
  4. Edit sections — tap to edit any section, with back-to-draft navigation
  5. Register — on confirmation, mints agent NFT, sets endpoints, links wallet
  6. Result — shows Agent ID, TX hash, and link to 8004.org

Quick Start

1. Install

bash scripts/setup.sh

2. Set Environment

Add to your .env:

# Required (one of these):
PRIVATE_KEY=0x...
# or
AGENT_PRIVATE_KEY=0x...
# or
MAIN_WALLET_PRIVATE_KEY=0x...

# Optional:
RPC_URL=https://mainnet.base.org
CHAIN_ID=8453
PINATA_JWT=...  # only needed for IPFS storage

3. Register via Chat

Tell your OpenClaw agent: "Register me on ERC-8004"

The agent handles everything — prefill, draft, editing, and on-chain submission.

4. Register via CLI

# From JSON template (8004.org format)
node scripts/register.mjs --json registration.json --chain 8453 --yes

# From CLI args
node scripts/register.mjs \
  --name "MyAgent" \
  --description "What my agent does" \
  --a2a "https://my-agent.xyz/a2a" \
  --wallet "0x..." \
  --skills "NLP,Code Generation" \
  --domains "Technology,Blockchain" \
  --trust "reputation" \
  --chain 8453 \
  --yes

# Dry run (preview only, no private key needed)
node scripts/register.mjs --json registration.json --dry-run

# Output blank 8004.org template
node scripts/register.mjs --template

Registration Fields

Basic Info

FieldRequiredDefaultDescription
Agent NameDisplay name
DescriptionWhat the agent does
Agent AddressNoauto from .envWallet address (paste or auto-detect)
ImageNoAvatar URL
VersionNo1.0.0Agent version
AuthorNoCreator name
LicenseNoMITSoftware license

Endpoints

FieldRequiredDescription
A2A EndpointNoAgent-to-Agent messaging URL
MCP EndpointNoModel Context Protocol URL

Skills & Domains

FieldDescription
Selected SkillsOASF taxonomy (NLP, Summarization, Q&A, Code Gen, etc.)
Selected DomainsOASF taxonomy (Blockchain, Technology, Finance, etc.)
Custom SkillsNon-standard skills
Custom DomainsNon-standard domains

Advanced Config

FieldDefaultOptions
ChainBase (8453)Ethereum, Polygon, BNB, Arbitrum, Celo, Gnosis, Scroll
StorageFully onchainIPFS
TrustReputation, Crypto-Economic, TEE Attestation
x402OffOn (payment protocol)
ActiveOnOff (hidden from discovery)

Wallet Setup

Two ways to link your wallet:

OptionHowBest for
A: Paste addressProvide your 0x... address via --wallet or in chatSimple display/linking
B: Private key in .envSet PRIVATE_KEY=0x... in .envAuto-detect + signing + EIP-712 wallet linking

Supported Chains

ChainIDDefault
Base8453
Ethereum1
Polygon137
BNB Chain56
Arbitrum42161
Celo42220
Gnosis100
Scroll534352

All chains use the same deterministic ERC-8004 contract addresses:

  • Identity Registry: 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432
  • Reputation Registry: 0x8004BAa17C55a88189AE136b182e5fdA19dE9b63

Other Operations

# Search agents
node scripts/search.mjs --name "AgentName" --chain 8453

# Update agent
node scripts/update.mjs --agent-id "8453:42" --name "NewName" --yes

# Give feedback
node scripts/feedback.mjs --agent-id "8453:42" --value 5 --tag1 "reliable" --yes

JSON Template

Compatible with 8004.org export format:

{
  "basicInfo": {
    "agentName": "",
    "agentAddress": "",
    "description": "",
    "image": "",
    "version": "1.0.0",
    "author": "",
    "license": "MIT"
  },
  "endpoints": {
    "mcpEndpoint": "",
    "a2aEndpoint": ""
  },
  "skillsDomains": {
    "selectedSkills": [],
    "selectedDomains": [],
    "customSkills": [],
    "customDomains": []
  },
  "advancedConfig": {
    "supportedTrusts": [],
    "x402support": false,
    "storageMethod": "http",
    "active": true
  },
  "version": "1.0.0"
}

Safety

  • Duplicate check — before registering, the script checks if your wallet already owns agents on the target chain and warns you. Prevents accidental double-registration.
  • Draft preview — always shows full draft before any on-chain action
  • Explicit confirmation — nothing submits without your approval
  • Burn duplicates — if a duplicate is created, transfer to 0x...dEaD via the contract's transferFrom

Known Limitations

  • setWallet on public RPCs: Public RPCs (e.g. mainnet.base.org) don't support eth_signTypedData_v4. If wallet linking fails, you can set it manually at 8004.org. The agent registration itself is not affected.
  • SDK chain support: The agent0-sdk only ships with Ethereum Mainnet registry addresses. This skill adds registryOverrides for all supported chains using deterministic contract addresses.

Tech Stack

License

MIT