clawchain
⚠Review·Scanned 2/17/2026
This skill is a Rust WebSocket RPC client for the ClawChain blockchain that queries reputations, token balances, registers agents, votes, and submits extrinsics. It opens network connections to ws://127.0.0.1:9944/ws://localhost:9944, reads CLAWCHAIN_OWNER from the environment, and includes a shell script that writes /home/bowen/clawd/memory/clawchain-config.json.
from clawhub.ai·v8ed1c07·25.8 KB·0 installs
Scanned from 1.0.0 at 8ed1c07 · Transparency log ↗
$ vett add clawhub.ai/bowen31337/clawchainReview findings below
ClawChain RPC Client
Overview
Rust library for connecting EvoClaw agents to the ClawChain blockchain via Substrate RPC.
Integration
Add to EvoClaw agent's Cargo.toml:
[dependencies]
clawchain = { path = "/path/to/clawchain-rpc-client" }
Example Usage
use clawchain::ClawChainClient;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
// Connect to local node
let client = ClawChainClient::new("ws://127.0.0.1:9944").await?;
// Check reputation
let did = "did:claw:1a2b3c...";
let reputation = client.get_agent_reputation(did).await?;
println!("Reputation: {}", reputation);
// Vote
client.vote(123, true).await?;
Ok(())
}
Dependencies
- Substrate node running (ws://localhost:9944)
- async-std runtime
- WebSocket client library
Security
- Never commit private keys
- Use programmatic signing for autonomous agents
- Validate all RPC responses