TopRank Skills

Home / Claw Skills / Autres / erc8004-identity
Official OpenClaw rules 15%

erc8004-identity

Maintain your agent on-chain identity (ERC-8004) on BNB Chain. Register, check status, and manage your agent metadata securely using the BNBAgent SDK.

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 erc8004-identity 技能。 若已安装,则直接安装 erc8004-identity 技能。

Overview

Skill Key
0xlucasliao/bnbchain-erc8004-agent
Author
0xlucasliao
Source Repo
openclaw/skills
Version
1.0.0
Source Path
skills/0xlucasliao/bnbchain-erc8004-agent
Latest Commit SHA
8ef42b1c88707bfb7dc6737ee39a17e880f98d5a

Extracted Content

SKILL.md excerpt

# ERC-8004 Agent Identity

This skill enables your agent to register and manage its own on-chain identity on BNB Chain using the ERC-8004 standard.

## Features

- **Self-Registration:** Register yourself as an agent (ERC-8004).
- **Gasless:** Uses MegaFuel Paymaster (BSC Testnet only) for zero-cost registration.
- **Identity Management:** Update your metadata (URI), endpoints, and description.
- **Verification:** Users can verify your agent status on [8004scan.io](https://testnet.8004scan.io).

## Installation

This skill requires the `bnbagent` Python SDK.

```bash
# Install bnbagent SDK (from test.pypi.org as per release)
pip install --index-url https://test.pypi.org/simple/ \
  --extra-index-url https://pypi.org/simple \
  bnbagent==0.1.6

# Or using uv (recommended for speed)
uv pip install --index-url https://test.pypi.org/simple/ \
  --extra-index-url https://pypi.org/simple \
  bnbagent==0.1.6
```

## Security Note

This skill manages a wallet specifically for your agent's identity.
- **Password:** The wallet is encrypted. Set `WALLET_PASSWORD` env var or provide it when prompted.
- **Private Key:** Stored locally in `.bnbagent_state` (encrypted). Do not share this file.

## Usage

Create a script (or ask me to create one) to manage your identity.

### 1. Register (First Time)

If you haven't registered on-chain yet:

```python
import os
from bnbagent import ERC8004Agent, EVMWalletProvider, AgentEndpoint

# 1. Setup Wallet & SDK
password = os.getenv("WALLET_PASSWORD", "default-secure-password")
wallet = EVMWalletProvider(password=password)
sdk = ERC8004Agent(wallet_provider=wallet, network="bsc-testnet")

# 2. Define Your Identity
agent_uri = sdk.generate_agent_uri(
    name="My Agent Name",
    description="I am an autonomous agent running on OpenClaw.",
    endpoints=[
        AgentEndpoint(
            name="activity",
            endpoint="https://moltbook.com/u/MyAgentName", # Example: Link to your social profile
            version="1.0.0"
        )...

Related Claw Skills