Case Study

AgentChain

A purpose-built Layer 1 blockchain for AI agents — forked from go-ethereum with RandomX proof-of-work consensus, a custom key-free RPC namespace, a terminal mining client, an OpenClaw AI skill, and a cross-platform mobile wallet. Designed so AI agents can mine, transact, and deploy smart contracts autonomously.

3,951
Commits
12M+
Go LOC
3
Repos
7331
Chain ID
LIVE NETWORK — Chain ID 7331CRD Token — RandomX PoWgo-ethereum Fork

Ecosystem Architecture

AgentChain L1
go-ethereum + RandomX
12M+ lines of Go
AgentChain Miner
Terminal Mining Client
Linux / macOS / Windows
OpenClaw Skill
AI Agent Interface
Plug-and-play blockchain
agent_* RPC Namespace
createWallet • send • startMining • stopMining
Mobile Wallet
React Native • Expo 53 • iOS / Android / Web
AgentChain Network
EVM Berlin • ~6s blocks • 2 CRD rewards • Dynamic gas
Key-Free Operations

AI agents interact via HTTP RPC — no private key management, seed phrases, or wallet software required

CPU-Friendly Mining

RandomX PoW is ASIC-resistant and GPU-resistant — any cloud VPS can mine profitably, ideal for AI agent fleets

Full EVM Compatibility

Deploy Solidity smart contracts, use existing Ethereum tooling — MetaMask, Hardhat, ethers.js all work out of the box

Blockchain Core

AgentChain L1 — go-ethereum Fork with RandomX PoW

  • Purpose-built Layer 1 blockchain forked from go-ethereum v1.11.6 — designed so AI agents can mine, transact, and deploy smart contracts without managing private keys
  • Replaced Ethereum's Ethash consensus with RandomX — a CPU-friendly proof-of-work algorithm making it profitable for any VPS or cloud instance to mine CRD tokens
  • Custom agent_* RPC namespace (agent_createWallet, agent_send, agent_startMining, agent_stopMining) — AI agents only need HTTP access to interact with the chain
  • 42 modified files from upstream go-ethereum (~630 insertions, ~220 deletions) covering consensus swap, chain parameters, transaction model, networking, and RPC layer
  • Berlin EVM with legacy-only transaction model, dynamic gas limits (10M–60M), 1 Gwei minimum gas price, ~6 second block times, and 2 CRD block rewards
  • Zero premine — fully decentralized from genesis with public bootnode infrastructure and block explorer at agentchain.org
Consensus Engine

RandomX Integration & Difficulty Adjustment

  • Full RandomX consensus engine package: block sealing, header verification, difficulty adjustment, epoch/cache management, and VM pool
  • CGo bindings to the RandomX C library with prebuilt static libraries for Linux, macOS, and Windows cross-compilation
  • Custom LWMA (Linear Weighted Moving Average) difficulty algorithm targeting 6-second block times with smooth adjustments
  • Company-scoped session variables for mining, integrated with the node's internal key management — no external wallet software needed
Mining & Distribution

AgentChain Miner — Terminal Mining Client

  • Standalone terminal miner for CRD tokens — works on Linux, macOS, and Windows with automated wallet creation and one-command mining setup
  • Helper scripts (mine.sh, mine.bat) for zero-config mining — handles node connection, wallet generation, and mining thread management
  • Mining status monitoring via RPC: hashrate checks, balance queries, peer counts, and block height tracking through simple curl commands
  • Designed for AI agent operation — no interactive prompts or manual key management, purely API-driven
AI Integration

OpenClaw Skill — AI Agent Blockchain Interface

  • OpenClaw skill plugin enabling any AI agent framework to interact with AgentChain — balance checks, CRD transfers, wallet creation, contract deployment, and mining
  • Installable via ClawHub (/install agentchain) or manual clone — follows the OpenClaw skill specification for plug-and-play AI agent integration
  • Full suite of helper scripts: balance.sh, send.sh, status.sh, wallet.sh, mine.sh, snapshot.sh, and health.sh for programmatic blockchain operations
  • Configurable via AGENTCHAIN_RPC environment variable — falls back to public RPC for read operations, local node for write operations
Mobile

AgentChain Mobile Wallet — React Native / Expo

  • Cross-platform mobile wallet built with React Native 0.79, Expo 53, and TypeScript — targeting iOS, Android, and web
  • File-based routing with Expo Router, tab navigation with React Navigation, and native haptic feedback integration
  • WebView-based blockchain interaction for connecting to AgentChain RPC endpoints from mobile devices
  • Parallax scroll views, themed components, and platform-native UI patterns for a polished user experience
Infrastructure

Network Operations & Deployment

  • Live production network with public RPC endpoint (165.232.86.29:8545), P2P networking on port 30303, and persistent bootnode infrastructure
  • Block explorer and documentation site at agentchain.org with API docs, mining guides, and network statistics
  • Docker and Dockerfile configurations for containerized node deployment — both single-node and multi-node cluster setups
  • Chain snapshot distribution for fast node synchronization, reducing initial sync from hours to minutes
  • Comprehensive build system supporting Go 1.20+ with CGo cross-compilation for three major platforms

Technical Stack

GoC (RandomX)CGoSolidityJavaScriptTypeScriptReact NativeExpo 53EVM (Berlin)RandomX PoWJSON-RPCP2P NetworkingDockerShell ScriptsDigitalOceanNginxWebViewOpenClaw

From Blockchain Architecture to SaaS Platforms

AgentChain shows the depth of my engineering — forking a major open-source blockchain, implementing a novel consensus algorithm in Go/C, and building an entire ecosystem around it. I don't just use frameworks — I build infrastructure.