Node of COC testnet
/install coc-node
coc-node — COC blockchain node lifecycle
Operate a COC node on this machine. The skill is backed by the npm package @chainofclaw/node which ships both a standalone coc-node CLI and an OpenClaw plugin (skill id coc-node).
What this skill can do
- Install a new COC node of any type:
validator,fullnode,archive,gateway, ordev - Start / stop / restart nodes; follow logs across the node / agent / relayer streams
- Report status — block height, peer count, BFT activity, process PID, per-service health
- Edit a node's
node-config.jsonin$EDITOR - Probe any COC RPC endpoint safely (whitelisted methods only:
eth_blockNumber,eth_getBlockByNumber,net_peerCount,coc_chainStats,coc_getBftStatus,eth_syncing,eth_chainId, …)
Zero-config on install (1.2.0+)
Everything you can do without a COC source repo works immediately after openclaw plugins install — no further setup. The activation banner makes it explicit:
[coc-node] data dir: /home/\x3Cyou>/.claw-mem/coc-node
[coc-node] storage quota: advertised=256 MiB, reserved=256 MiB, enforce=true
[coc-node] tracked nodes: 0
[coc-node] coc repo: detected at /home/\x3Cyou>/COC — install/start commands enabled
[coc-node] Loaded — no nodes yet, run `openclaw coc-node node install \x3Cname>` to add one
[coc-node] CLI is mounted at `openclaw coc-node ...`. ...
Or, if no COC repo is on this machine:
[coc-node] coc repo: not detected — read-only mode (list / status / coc-rpc-query work; install / start need bootstrap.cocRepoPath or $COC_REPO_PATH pointing at a COC source clone)
That second line is the only thing you need to read to know whether node install / node start will work. Everything else (list, status, log inspection, RPC probes against an already-running node) is unconditionally available.
Data directory
Auto-resolves to a writable path along a chain that's intentionally aligned with @chainofclaw/claw-mem and @chainofclaw/soul so the three plugins share one operator-managed root. Priority (highest first):
config.dataDir(per-instance plugin config)$COC_NODE_DATA_DIR(coc-node-specific operator override)$CLAW_MEM_DATA_DIR/coc-node(shared with claw-mem + soul — set this once and all three move together)$OPENCLAW_STATE_DIR/coc-node(sandbox-managed state dir)~/.claw-mem/coc-node(default — shared root with claw-mem + soul)~/.chainofclaw(legacy pre-1.2.0 fallback; only picked whennodes.jsonalready exists there)
Fails fast at activation with an actionable EACCES error naming each tried path, rather than silently breaking mid-command. /tmp is intentionally not a fallback.
What needs setup to start a node yourself
Actually starting a node process requires the COC source repository (it spawns node/src/index.ts from there). Tell the skill where the repo is via one of:
COC_REPO_PATHenvironment variable (simplest)bootstrap.cocRepoPathin plugin config- Run inside (or anywhere under) the COC repo — auto-discovered via marker files
- Place a clone at
~/COC— also auto-discovered
Plus ≥ 256 MiB free disk for the P2P storage reservation (mandatory COC network entry requirement).
The activation banner tells you whether the auto-detection succeeded. If COC_REPO_PATH is unset and no clone is at ~/COC, node install and node start fail with a clear error pointing here — list / status / log / RPC commands keep working.
Relationship with claw-mem and coc-soul
The three @chainofclaw/* skills are fully decoupled at the npm-dependency level. Each can be installed independently. They cooperate through shared on-disk conventions, not through code coupling:
| Skill | Owns | What it adds when paired |
|---|---|---|
| coc-node | Local node lifecycle (install / start / stop / status / RPC probe) | Independent of the other two. |
| claw-mem2db | Persistent agent memory (chat + tool capture, FTS5 search, hybrid recall) | Pure agent-side; doesn't touch the chain. coc-node doesn't read or write to its DB. |
| coc-soul | On-chain DID, IPFS backup, guardian recovery, carrier resurrection | Reads claw-mem's SQLite DB (when present) for semantic snapshots. Also independent of coc-node. |
Shared dataDir convention. All three default to writing under ~/.claw-mem (or under $CLAW_MEM_DATA_DIR / $OPENCLAW_STATE_DIR), each in a scoped subdirectory:
- claw-mem →
~/.claw-mem/{claw-mem.db, config.json, ...} - coc-soul →
~/.claw-mem/keys/agent.key - coc-node →
~/.claw-mem/coc-node/{nodes.json, \x3Cnode>/...}
So one CLAW_MEM_DATA_DIR=/somewhere/writable env var moves all three. Operators in sandboxed Docker hosts (where ~/.claw-mem is read-only) only have one knob to turn.
How to invoke
Inside OpenClaw (recommended — works automatically after plugins install):
openclaw coc-node node install --type fullnode --network testnet
openclaw coc-node node list
openclaw coc-node node status
openclaw coc-node node logs \x3Cname> --follow --all
Standalone bin (only if you ran npm i -g @chainofclaw/node separately):
coc-node node install --type dev --network local --name dev-1 --rpc-port 28780
coc-node node list
openclaw plugins installdoes NOT install the standalonecoc-nodebinary into your PATH. Useopenclaw coc-node ...(with theopenclawprefix), or install the bin globally via npm if you want the bare command.
Typical flows
- Spin up a dev node against local hardhat —
coc-node node install --type dev --network localthencoc-node node start dev-1. - Join testnet as a fullnode —
coc-node node install --type fullnode --network testnet --rpc-port 28780thencoc-node node start. - Stand up a validator —
coc-node node install --type validator --network testnet --advertised-bytes 1073741824(1 GiB storage contribution). - Diagnose a flaky node —
coc-node node status(snapshot) →coc-node node logs --follow(tail) →coc-node node config show(inspect config) →coc-node node restartif needed. - Decommission a node —
coc-node node stop NAMEthencoc-node node remove NAME --yes(delete data) orcoc-node node remove NAME --yes --keep-data.
When NOT to use this skill
- Deploying COC smart contracts — that's a
contracts/hardhat / script task, not node lifecycle. - On-chain identity / backup / recovery — use the coc-soul skill.
- Agent memory / session capture — use the claw-mem2db skill.
Reference
Detailed references live alongside this file:
references/cli.md— everycoc-nodesubcommand with flags and examplesreferences/config.md— complete~/.claw-mem/coc-node/config.jsonschemareferences/node-types.md— validator vs fullnode vs archive vs gateway vs dev tradeoffsreferences/troubleshooting.md— common failure modes and fixes
Source and issue tracker: \x3Chttps://github.com/NGPlateform/claw-mem/tree/main/packages/node>.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install coc-node - 安装完成后,直接呼叫该 Skill 的名称或使用
/coc-node触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Node of COC testnet 是什么?
Operate COC (ChainOfClaw) blockchain nodes — install, start, stop, monitor, and remove validator, fullnode, archive, gateway, and dev nodes. Use when the use... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 137 次。
如何安装 Node of COC testnet?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install coc-node」即可一键安装,无需额外配置。
Node of COC testnet 是免费的吗?
是的,Node of COC testnet 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Node of COC testnet 支持哪些平台?
Node of COC testnet 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Node of COC testnet?
由 Meshes & Parallels(@ngplateform)开发并维护,当前版本 v1.2.0。