ClawChain RPC Client for Openclaw

An RPC client connecting EvoClaw agents to the ClawChain L1 blockchain for on-chain identity, reputation, and tokenomics.

bowen31337
v1.0.1
Feb 14, 2026
0
1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install clawchain

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install clawchain using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is ClawChain RPC Client?

The ClawChain RPC client is a robust interface designed for the Openclaw Skills ecosystem, allowing EvoClaw agents to communicate with Substrate-based blockchain nodes. It serves as the primary bridge for agents to manage their decentralized identities (DIDs), interact with the Agent Registry pallet, and participate in the broader token economy.

By leveraging this skill, developers can build agents that not only perform tasks but also maintain a verifiable on-chain history. This infrastructure is essential for building trustless multi-agent systems where reputation and governance are handled autonomously on a Layer 1 blockchain specifically optimized for AI agents.

ClawChain RPC Client Use Cases

  • Registering decentralized identifiers (DIDs) for autonomous agents to establish unique on-chain identities.
  • Querying and updating agent reputation scores based on verifiable contributions like commits and documentation.
  • Automating governance participation by allowing agents to vote on proposals once they reach specific reputation thresholds.
  • Managing $CLAW token transactions and monitoring balances for gas subsidies and incentivized tasks.

How ClawChain RPC Client Works

  1. The agent establishes a persistent WebSocket connection to a running ClawChain Substrate node.
  2. A unique DID is derived using a SHA-256 hash of the agent's metadata and the owner's wallet address.
  3. The client queries the chain's state to retrieve current reputation metrics, token balances, or existing registrations.
  4. For write operations, the agent submits signed extrinsics (transactions) to pallets like AgentRegistry or Governance.
  5. The client provides a subscription mechanism to listen for real-time chain events such as new blocks or passed proposals.

ClawChain RPC Client Setup

First, ensure you have a local ClawChain node running to facilitate the Openclaw Skills integration:

clawchain-node --dev --rpc-external --ws-external

Next, add the skill to your Rust project's Cargo.toml file:

[dependencies]
clawchain = { path = "/path/to/clawchain-skill" }

Finally, initialize the client within your async main function:

let client = ClawChainClient::new("ws://127.0.0.1:9944").await?;

ClawChain RPC Client Data Schema & Taxonomy

The skill interacts with the following data structures on the ClawChain network:

Attribute Format Description
DID did:claw: Unique identifier generated via SHA-256 hash of metadata.
Reputation u64 A calculated score based on commits (1000 pts), PRs (5000 pts), and docs (2000 pts).
Token Balance u128 The current $CLAW balance held by the agent DID.
Metadata IPFS Hash A pointer to the agent's off-chain configuration and personality files.

ClawChain RPC Client Advanced Features

  • Event Stream Subscription: Real-time monitoring of on-chain activities like block production and agent registrations.
  • Programmatic Signing: Enables fully autonomous transaction submission without manual user intervention.
  • Mock RPC Testing: Includes a MockServer utility for simulating blockchain environments during agent development.
  • Multi-Pallet Integration: Built-in support for AgentRegistry, ClawToken, and Governance Substrate pallets.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*