NAVY AI is a professional Web3 dashboard that combines blockchain data with a sarcastic AI persona. Built with Next.js 15, Wagmi/Viem, and OpenAI, it analyzes your wallet's ETH liquidity and delivers a "Combat Report" with the attitude of a Brazilian Navy Sergeant.
Now featuring the Admiral Protocol: A gamified betting system integrated with Smart Contracts.
The core objective of NAVY AI is to demonstrate a seamless integration between decentralized finance (DeFi) data, smart contracts, and artificial intelligence.
- Admiral Protocol (Betting): Users can bet 0.001 ETH on getting a compliment from the AI. The logic is handled by a custom Solidity Smart Contract (
0x6edF95c53965eD7FC12DA6Ce4146f6a4598dE4a9on Sepolia). - NFT Rank Minting: Users can mint a dynamic NFT based on their wallet analysis. Images are fetched from high-quality naval stock via Unsplash CDN.
- Logbook Entry: Users can permanently record their presence on the blockchain via the
NavyLogbookcontract. - Professional Web3 Login: Powered by ConnectKit, supporting EIP-6963 and various wallet providers.
- Real-time Blockchain Reading: Uses Viem and Wagmi v2 for fast, reactive balance checks on Ethereum Mainnet and Sepolia Testnet.
- Sarcastic AI Agent: Integrated with GPT-4o-mini to provide a unique, humorous, and authoritative persona.
- Safe Architecture: Contract addresses and RPCs are managed via Environment Variables (
.env) for maximum security and CI/CD compatibility. - Multi-language Support: Dynamic interface and AI responses in English, Portuguese, and Spanish.
- Senior Tech UI: Glassmorphism effects, fluid animations via Framer Motion, and responsive design with Tailwind CSS.
- Frontend: Next.js 15 (App Router), React 19, Tailwind CSS.
- Blockchain Layer: Solidity 0.8.20+, Wagmi v2, Viem v2, ConnectKit.
- AI Layer: OpenAI SDK (GPT-4o-mini).
- Infrastructure: Vercel (Deployment), Unsplash (Dynamic NFT Media).
The project includes tactical smart contracts deployed on Sepolia:
- NavyBet.sol: Manages the 0.001 ETH bets and authorized payouts.
- NavyNFT.sol: An ERC721 dynamic rank NFT with metadata integration.
- NavyLogbook.sol: A decentralized ledger for admirals to sign their messages.
Find the contract source codes in the /contracts directory.
- Node.js 18+ installed.
- An Ethereum wallet (MetaMask recommended) with Sepolia ETH.
- An OpenAI API Key.
npm install --legacy-peer-depsCreate a .env.local file:
# AI & Security
OPENAI_API_KEY=your_openai_api_key_here
# Web3 Configuration
NEXT_PUBLIC_WC_PROJECT_ID=your_walletconnect_project_id_here
NEXT_PUBLIC_RPC_URL=https://rpc.ankr.com/eth_sepolia
# Contract Addresses (Sepolia)
NEXT_PUBLIC_NAVY_BET_ADDRESS=your_contract_address_here
NEXT_PUBLIC_LOGBOOK_ADDRESS=0x...
NEXT_PUBLIC_NAVY_NFT_ADDRESS=0x...npm run build && npm run start- Select Language: Choose between EN, PT, or ES.
- Summon Wallet: Connect via MetaMask (Switch to Sepolia network).
- Bet Tactic: Use the "BET 0.001 ETH" button to interact with the
NavyBetcontract. - Combat Report: Request your AI-powered analysis.
- Claim Rank: Mint your official Navy AI NFT based on your status.
- Log Entry: Use the "LOGBOOK" button to sign the blockchain ledger.
Distributed under the MIT License.
Developed for sailors and whales alike. Stay sharp, Admiral. ⚓️🔥