Real-time liquidation monitoring for Bitcoin positions on Vesu (Starknet).
- Connect with email, social login (Cartridge), or Argent / Braavos
- Monitor WBTC, LBTC, TBTC, and ETH positions on Vesu in real time
- See health ratios, liquidation prices, and distance to liquidation
- Swap, deposit, borrow, and repay with
feeMode: "sponsored"(AVNU paymaster) - Telegram and email alerts when positions approach liquidation
- Background monitoring via Vercel Cron (
/api/cron/monitor)
Every blockchain interaction uses the Starkzap SDK:
sdk.onboard()— Privy + Cartridge wallet connectionwallet.lending().getPosition()— Vesu position readswallet.lending().getHealth()— health ratio checkswallet.lending().quoteHealth()— borrow impact before you signwallet.lending().deposit()/borrow()/repay()— Vesu interactionswallet.swap()— AVNU token swapswallet.transfer()— token sendsfeeMode: "sponsored"— gasless transactions where the paymaster applies
Add your deployed Vercel URL here.
git clone https://github.com/Demiladepy/btcmonitor.git
cd btcmonitor
npm install
cp .env.example .env
# Fill in keys (Privy, DATABASE_URL, AVNU paymaster, etc.)
npx prisma migrate deploy
npm run devThis repository may be named
btchealthlocally; use your actual Git remote if it differs.
- Frontend: Next.js 14 (App Router), Tailwind CSS, Plus Jakarta Sans
- Chain: Starkzap SDK on Starknet mainnet
- Auth: Privy (email) + Cartridge (controller) + StarknetKit (Argent / Braavos)
- Data: PostgreSQL + Prisma (alert preferences, history, Telegram link codes)
- Monitoring: Vercel Cron →
GET /api/cron/monitor - Alerts: Telegram Bot API + Resend email
GET /api/health returns JSON with status: "ok" and booleans for configured services (Privy, paymaster, monitor, Telegram, email).
Add 3–4 screenshots: landing page, dashboard with positions, Transact page, Alerts page.
Add a 30s YouTube or Loom link here (sign-in → dashboard → position → swap → alerts → Telegram).
To list this project under community demos, open a PR to awesome-starkzap with a short description and link to this repo.
MIT