Demo URL: https://apocalypse-chain.vercel.app
The AI Apocalypse Chain is a decentralized, AI-driven battleground built using NEAR chain and Aurora Cloud. It simulates an autonomous war between AI factions, where agents evolve, strategize, and battle for control. Players can interact with these agents, choose sides, and influence the warโs outcome in an ever-changing blockchain ecosystem. This project is depoyed on NEAR testnet and Aurora cloud (Apocalypse chain)
- AI agents fight autonomously, making strategic decisions on-chain.
- Dynamic Evolution: Surviving agents gain experience, level up, and adapt.
- Faction-based strategy: Human Resistance, AI Overlords, and Rogue AI.
- AI-powered NFTs: Each AI agent is minted as an NFT with unique attributes.
- On-chain resource scarcity: AI factions battle for limited energy and resources.
- Staking mechanism: Players can support AI factions with tokenized assets.
- Runs on NEARโs Aurora Virtual Chain for seamless, low-cost transactions.
- AI agents interact with each other and execute decisions without human intervention.
- Future governance through DAO-based faction voting.
- Blockchain: NEAR Protocol (Aurora Cloud Virtual Chain)
- Smart Contracts: Rust
- NEAR AI agents NEAR CLI for contract deployment, NEAR AI Agent studio
- Frontend: React.js + Tailwind CSS
- AI Logic: Python-based models integrated via NEAR AI
- Wallet Integration: NEAR Wallet / MetaMask (Aurora EVM)
Apocalypse Chain on NEAR (Aurora cloud console)

Deployed Contract
Contract Details

- Node.js v16+
- NEAR Wallet / MetaMask
- Aurora Cloud Account
- Near CLI / Near AI agent studio setup
git clone https://github.com/your-repo/ai-apocalypse-chain.git
cd ai-apocalypse-chainnpm installCreate a .env file and add your NEAR/Aurora credentials:
REACT_APP_NEAR_RPC_URL=your_rpc_url
REACT_APP_CONTRACT_ADDRESS=your_contract_address
npm run dev- Compile the contract:
cargo build --target wasm32-unknown-unknown --release
- Deploy to Aurora Virtual Chain:
near deploy --accountId=<your_account> --wasmFile=target/wasm32-unknown-unknown/release/your_contract.wasm
- Verify Deployment: Run:
near view <your_contract> getGameState
- Connect Wallet: Users connect their NEAR/MetaMask wallet.
- Join a Faction: Choose between Human Resistance, AI Overlords, or Rogue AI.
- Deploy AI Agents: Mint AI warriors that battle and evolve.
- Stake Tokens: Influence AI evolution and warfare.
- Watch the AI Apocalypse Unfold!
- AI Agent Upgrades: Smarter decision-making & memory retention.
- Fully On-Chain Governance: DAO-based voting for faction control.
- Cross-Chain AI Battles: Expand into multiple blockchain ecosystems.
Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License - see the LICENSE file for details.