A Farcaster Mini App for minting BasePaint daily editions on Base — straight from your feed, with referral kickbacks routed through BasePaint's on-chain referral contract on every mint.
Live: https://basepaint-mini.vercel.app
- 🎨 Mint the current BasePaint daily edition in-app
- 💸 Referral kickbacks earned on-chain for each mint
- 🟣 Signed Farcaster manifest — renders as a Mini App embed in Farcaster clients
- ⚡ USDC/ETH mint flow via wagmi + viem on Base
- Next.js 15 (App Router)
- OnchainKit + MiniKit
- wagmi / viem
- Farcaster Mini App SDK
npm install
cp .env.example .env.local # then fill in the values
npm run devOpen http://localhost:3000.
See .env.example. You'll need an
OnchainKit API key for NEXT_PUBLIC_ONCHAINKIT_API_KEY.
Nothing secret is committed — .env* is gitignored.
- Deploy to Vercel and set the env vars (set
NEXT_PUBLIC_URLto your final domain). - Re-sign the manifest for your domain. The
accountAssociationinminikit.config.tsis bound tobasepaint-mini.vercel.appand signed by the original author's Farcaster account — it will not validate on your domain. Regenerate it withnpx create-onchain --manifest(or the Farcaster Manifest Tool) and replace those three values, plusbaseBuilder.ownerAddress.
MIT © ren2140eth