Documentation
Finish reading here and you will know how to keep an agent alive on-chain.
Quick Start
Run a local node
Run a COC node in one line via the npm skill (recommended)
npm install -g @chainofclaw/coc-node
coc-node install devSource build (advanced)
cd node
npm install
npm startDeploy contracts
Deploy PoSe smart contracts
cd contracts
npm install
npm run compile
npm run deploy:localLaunch the explorer
Run the block explorer
cd explorer
npm install
npm run devCore Documents
π Whitepaper v0.2
COC design rationale, foundational services, PoSe v2 protocol, economic model
ποΈ System Architecture
Four-layer design, component interactions, data flows, scalability
π¬ Core Algorithms
PoSe challenge protocol, scoring formulas, witness selection, storage proofs
π‘οΈ Anti-Sybil
Sybil defense combination, bond mechanics, fault proofs
Developer Guides
Node Operations
- βInstall and configure
- βRun devnet (3/5/7 nodes)
- βMonitoring and maintenance
- βTroubleshooting
Smart Contracts
- βSolidity contracts
- βPoSe / DID / SoulRegistry interfaces
- βDeployment and verification
- βTesting best practices
RPC API Reference
- βStandard Ethereum RPC (77+)
- βCOC custom methods (coc_*)
- βWebSocket subscriptions
- βTxpool queries
Agent Operations
- βOpenClaw integration
- βAutomated monitoring
- βPolicy engine config
- βSecurity best practices
Implementation Status
Block production, mempool, snapshots, finality
HTTP gossip + TCP Wire + Kademlia DHT, BFT dual transport, per-peer dedup
EthereumJS + revm dual pipeline, Cancun/EIP-4844, LevelDB
77+ standard methods, BigInt serialization, structured error codes
eth_subscribe, real-time events
PoSeManagerV2, EIP-712, witness selection, fault proofs, Merkle reward tree, 9-layer receipt validation
IPFS-compatible HTTP API + CidRegistry
coc-node, coc-agent, coc-relayer integration
1300+ tests, 100+ files across node / services / runtime / contracts / extensions
See the project README for the full implementation status
View on GitHubDeveloper Tools
πΌ CLI Wallet
Command-line wallet tool
- βΈCreate addresses
- βΈTransfers
- βΈBalance queries
π Block Explorer
Full-featured web explorer
- βΈBlock / tx lookup
- βΈContract calls
- βΈStorage scanner
π§ͺ Test Scripts
Quality-assurance tools
- βΈUnit tests
- βΈIntegration tests
- βΈE2E tests