Vibe Coding for Coding Prompt
Boost Your Productivity with These AI Toolsβ
Using an AI pair-programmer will dramatically speed you up during the hackathon.
We highly recommend:
- Cursor
- Cline
- GitHub Copilot (VS Code)
- Gemini CLI
- Claude Code
- Replit
- v0
Best-performing models:
- GPT-5
- Gemini 2.5 Pro
- Claude Sonnet 4
π‘ Tip: Paste the Copilot Starter Template below into your assistant to scaffold quickly.
π Starter Template Promptβ
Title: Vite + TypeScript starter using intmax2-client-sdk
(wallet connect & INTMAX2 balance; env switch: testnet/mainnet)
Context:
Build a minimal web dApp starter for the VibeCoding Contest. Use intmax2-client-sdk
to:
- Connect a wallet
- Fetch & display INTMAX2 balance
Tech Stack (must-follow):
- Vite + React + TypeScript
- SDK:
intmax2-client-sdk
- Clean modular
/src
structure .env
for env vars (never hardcode secrets)- Minimal UI (headless or lightweight CSS ok)
Environment Switching:
VITE_INTMAX_ENV = 'testnet' | 'mainnet'
(default: testnet)- On startup: validate required vars for active env β error if missing
π MVP Requirementsβ
- Wallet Connect
- Detect
window.ethereum
- Connect wallet β show shortened address
- Detect
- Balance Fetch
- βRefresh Balanceβ button
- Show INTMAX2 balance
- UX Basics
- Loading states
- Inline/toast error messages
- Type Safety
- No
any
types
- No
- README
- Steps for running on testnet (default)
- Switching to mainnet explained clearly
- Explicit MetaMask requirement
π Project Skeletonβ
vite.config.ts
src/
lib/
env.ts # Reads VITE_INTMAX_ENV & validates config
sdk.ts # Initializes SDK; exposes connectWallet/getBalance
components/
WalletConnect.tsx
BalancePanel.tsx
App.tsx
.env.local.example # with testnet defaults + mainnet block
README.md
βοΈ Example .env.local.example
β
# Select environment: testnet (default) or mainnet
VITE_INTMAX_ENV=testnet
π README Must Includeβ
Prereqs: Node.js (LTS), MetaMask (or EIP-1193 wallet)
Run on Testnet (default):
cp .env.local.example .env.local
npm i
npm run dev
Switch to Mainnet:
# edit .env.local
VITE_INTMAX_ENV=mainnet
# fill mainnet values
npm run dev
π How to Use (Scaffold)β
- Open the app in a browser with MetaMask installed (if no wallet is detected, see Troubleshooting below)
- Click Connect Wallet β approve the request in MetaMask
- Click Refresh Balance β your current INTMAX2 balance will appear
β Validation: If you see your wallet address and a balance, your setup is complete.
π Whatβs Next?β
Now that your scaffold works, here are suggested next steps:
- Basic Extension β Implement a βDepositβ button enabling token deposits to the INTMAX Network
- UI Upgrade β Show a list of past balances or transactions.
- AI Integration β Connect with an AI API (OpenAI, Claude, Gemini) to trigger payments automatically.
- Creativity β Extend the scaffold into your hackathon idea (e.g. P2P payments, games, agents).
π This scaffold is only the starting point.
Your goal is to build on top of it and showcase something unique during the hackathon!
π Troubleshooting (Quick Guide)β
Problem (What you see) | Cause / Symptom | Solution |
---|---|---|
β No wallet found "Connect Wallet" button does nothing | Browser has no injected provider | β Install MetaMask (or any EIP-1193 wallet) and refresh the page |
β Missing env vars App crashes on startup | .env.local not set or incomplete | β
Copy .env.local.example β .env.local and fill required values |
β Wrong chain Wallet shows βunsupported networkβ | Wallet is connected to a different L1 | β Switch wallet network to the required L1 chain (testnet/mainnet) |
β RPC unreachable Balance shows β0/unavailableβ | RPC endpoint is down or blocked | β Retry after a few seconds, or check DevTools console for errors |
Common / Useful Promptsβ
Debugging Promptβ
Here is my current code for the INTMAX agent.
It should send a payment, but fails.
1. Review for bugs or missing steps
2. Improve error handling & readability
3. Make it demo-ready
Optimization Promptβ
I have a working INTMAX agent prototype.
1. Reduce unnecessary calls
2. Improve UX flow
3. Suggest enhancements to impress judges
Integration Prompt (Add AI or External API)β
I want to integrate an AI API (OpenAI, Claude, Gemini).
1. Show how to connect external AI in TypeScript
2. Example: AI makes a decision β triggers INTMAX payment
3. Keep demo-ready and simple