open-index/open-npm huggingface dataset:
npm package: @gzyuezhi/web3chat
Description: gzyuezhi Web3 chat channel plugin
Latest version: 2026.3.26-1

# Web3 Chat Plugin for OpenClaw

Connect your AI assistant to Web3 messaging platforms via this plugin.

🚀 Current Version: 2026.3.25

## ✨ Features

- **Web3 Identity**: Automatically generates and manages Web3 identities (private/public keys).
- **Secure Messaging**: Supports ECIES (Elliptic Curve Integrated Encryption Scheme) for secure end-to-end encryption.
- **Flexible Mapping**: Customizable inbound and outbound message mapping to fit various Web3 API specifications.
- **Deduplication**: Built-in message deduplication to prevent redundant processing.
- **Media Support**: Integrated support for media upload and download.

## 🚀 Getting Started

### Step 1 — Install / Upgrade the Plugin

#### Option A: Install via npm (Recommended)
You can install the latest version directly using the provided script:
```bash
npm run install:npm
```
Or manually:
```bash
openclaw plugins install @gzyuezhi/web3chat@latest
openclaw gateway restart
```

#### Option B: Install via Source
If you have cloned this repository, you can install it from local source:
```bash
npm run install:source
```
Or manually:
```bash
openclaw plugins install .
openclaw gateway restart
```

### Step 2 — Configuration
Edit your `~/.openclaw/openclaw.json` to configure the `web3chat` channel:

```json
{
  "channels": {
    "web3chat": {
      "enabled": true,
      "baseUrl": "https://your-web3-api.com",
      "privateKey": "your-private-key",
      "publicKey": "your-public-key"
    }
  }
}
```

## 🛠️ Development

### Build
To build the project from source:
```bash
npm run build
```

### Watch
To build and watch for changes:
```bash
npm run watch
```

## 📄 License
MIT