ANTDChain is a high-performance Proof-of-Work Layer 1 blockchain featuring a unique Rotating King governance system. Built for speed, security, and decentralized governance, it combines Ethereum-compatible tooling with innovative economic models.
- Custom PoW Algorithm: BLAKE3 + Argon2id hybrid for ASIC resistance
- EVM Compatibility: Full Ethereum Virtual Machine support
- Lightning-Fast Sync: Optimized peer-to-peer synchronization
- Checkpoint System: Trustless bootstrapping with peer-validated checkpoints
- Database-Backed State: Persistent storage with automatic recovery
- Dynamic Royalty System: 5% of block rewards distributed to rotating kings
- Stake-Based Eligibility: 100,000 ANTD minimum stake requirement
- Automatic Rotation: Kings rotate every 100 blocks automatically
- Ineligibility Protection: Addresses below minimum stake auto-removed
- Network Consensus: King lists synchronized across all nodes
- Multi-threaded block validation
- Orphan block rejection (no orphan storage)
- Chain reorganization protection
- State trie with Merkle proofs
- Transaction pool with confirmation system
- libp2p-based networking with GossipSub
- Multi-topic pub/sub for blocks, transactions, and king events
- DHT-based peer discovery
- Rate-limited message handling
- Direct block push optimization
- CPU-mining optimized PoW
- Dynamic difficulty adjustment
- Mining templates for stratum compatibility
- Real-time hash rate monitoring
- Hierarchical Deterministic (HD) wallets
- Secure key storage with encryption
- Transaction signing with ECDSA
- Nonce management and fee calculation
- Full Ethereum-compatible API
eth_,net_,web3_namespace support- Web interface with real-time monitoring
- Health check endpoints
- Native Token: ANTD (1 ANTD = 10^18 base units)
- Block Reward: 1 ANTD + transaction fees
- Reward Distribution:
- 90% β Miner
- 5% β Main King (fixed address)
- 5% β Rotating King (eligible addresses)
- Minimum Stake: 100,000 ANTD for king eligibility
- Rotation Interval: Every 100 blocks (~50 minutes)
- Activation Delay: 2 blocks after rotation
- Go 1.21+
- GCC compiler (for CGO)
- 4GB+ RAM recommended
- 50GB+ storage for full node
# Clone repository
git clone https://github.com/antdaza/antdchain.git
cd antdchain
# Build for Ubuntu
make ubuntu-build
# Or build for your platform
go build -o antdchain ./cmd/antdchain# Start a node with default settings
./antdchain --data-dir ./antdchain-data --p2p-port 3000
# Start with mining enabled
./antdchain --startmining --miner-address YOUR_ADDRESS
# Connect to testnet
./antdchain --bootstrap "/ip4/1.2.3.4/tcp/3000/p2p/12D3KooW..."
# Open console interface
./antdchain --consoleantdchain-data/
βββ blocks/ # Block storage
βββ state/ # Blockchain state
βββ wallets/ # Encrypted wallets
βββ p2p-key.hex # Node identity
βββ checkpoints.json # Trusted checkpoints
- P2P: 3000 (default)
- JSON-RPC: 8089 (default)
- Web Interface: 8090 (default)
# Get chain height
curl -X POST http://localhost:8089/rpc \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
# Get balance
curl -X POST http://localhost:8089/rpc \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_getBalance","params":["0x...","latest"],"id":1}'
# Send transaction
curl -X POST http://localhost:8089/rpc \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_sendRawTransaction","params":["0x..."],"id":1}'Access at: http://localhost:8090
- Real-time block explorer
- Network status dashboard
- Wallet management
- Mining statistics
# List current kings
./antdchain king list
# Check eligibility status
./antdchain king status
# Force rotate to specific king
./antdchain king rotate --index 2 --reason "maintenance"
# Cleanup ineligible kings
./antdchain king cleanup
# Sync configurations from peers
./antdchain king sync
# Debug king database
./antdchain king debug- Fast Sync: Downloads blocks sequentially from highest peer
- Gossip Sync: Receives blocks via pub/sub (real-time)
- Database Sync: Rotating king state synchronization
- Config Sync: King list consensus synchronization
- Bootstrap Nodes: Manual configuration
- mDNS: Local network discovery
- DHT: Global peer discovery
- GossipSub: Topic-based peer finding
- Persistent peer identity with encrypted storage
- Rate limiting per peer (transactions, blocks, events)
- Checkpoint validation for chain integrity
- Transaction nonce and signature verification
- BIP-39 mnemonic phrases
- Encrypted keystore (AES-256)
- Hierarchical deterministic wallets
- Air-gapped signing support
- Proof-of-Work spam protection
- Sybil attack resistance via stake requirements
- Eclipse attack prevention with diverse peer connections
- Message authentication and encryption
# View logs in JSON format
tail -f antdchain-data/node.log | jq .
# Monitor sync status
./antdchain --console
> debug sync
> debug peers
> debug kings- Block propagation time
- Transaction throughput
- Network latency
- Memory usage
- Database performance
# API health check
curl http://localhost:8089/health
# Check sync status
curl -X POST http://localhost:8089/rpc \
-d '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}'{
"genesis": {
"miner": "0qANA3c85k94LTyTXLGDdEzmLE32b1qhYZF",
"timestamp": 1763731821,
"difficulty": "1",
"alloc": {
"0qANA3c85k94LTyTXLGDdEzmLE32b1qhYZF": "1000000000000000000000000"
}
}
}# Custom difficulty
./antdchain --mining-difficulty 1000
# Set CPU threads
./antdchain --mining-threads 4
# Target block time
./antdchain --target-block-time 30# Custom bootstrap nodes
./antdchain --bootstrap "/ip4/1.2.3.4/tcp/3000/p2p/...,/ip4/5.6.7.8/tcp/3000/p2p/..."
# Disable discovery
./antdchain --no-mdns --no-dht
# Maximum peers
./antdchain --max-peers 100 --min-peers 10# Force resync from genesis
rm -rf antdchain-data/blocks/*
rm -rf antdchain-data/state/*
# Check peer connections
./antdchain --console
> debug peers
> force sync# Check miner address
./antdchain --console
> get miner
# Verify PoW difficulty
> debug pow
# Check block template
> debug mining# Force config sync
./antdchain king sync
# Clean ineligible kings
./antdchain king cleanup
# Reset to defaults
rm -rf antdchain-data/kingdb/*# Create backup
./antdchain king backup ./king-backup
# Restore from backup
cp -r ./king-backup/* antdchain-data/kingdb/# Clone with submodules
git clone --recursive https://github.com/antdaza/antdchain.git
# Install dependencies
go mod download
# Run tests
go test ./...
# Build development version
make dev-buildantdchain/
βββ cmd/antdchain/ # Main executable
βββ antdc/ # Core blockchain implementation
β βββ chain/ # Blockchain logic
β βββ p2p/ # Network layer
β βββ mining/ # PoW implementation
β βββ tx/ # Transaction system
β βββ wallet/ # Wallet management
β βββ rotatingking/ # King governance
β βββ vm/ # EVM implementation
βββ console/ # Interactive console
βββ web/ # Web interface
# Run unit tests
go test ./antdc/...
# Run integration tests
go test -tags=integration ./...
# Benchmark performance
go test -bench=. ./antdc/chain/...- Whitepaper - Technical specifications
- API Documentation - Complete API reference
- Mining Guide - Mining setup and optimization
- Governance - King system details
- Security - Security best practices
- Repository: https://github.com/antdaza/antdchain
- Issues: https://github.com/antdaza/antdchain/issues
- Discussions: Community forum (coming soon)
antdchain is released under the MIT License. See LICENSE for details.
- Ethereum Foundation for EVM specification
- libp2p team for networking stack
- Go Ethereum for inspiration and tooling
- All contributors and testers
Disclaimer: ANTDChain is experimental software. Use at your own risk. Always backup your wallets and private keys.
Version: v1.0.0 - December 2025