Skip to main content

Midpoint Documentation

Multi-page guide for using, deploying, and maintaining Midpoint on Polygon.

Deployment

  1. Push latest code to GitHub branch.
  2. Import repo into Vercel project.
  3. Set all required environment variables in Vercel settings.
  4. Deploy and verify wallet connect + role pages + upload flow.

Ensure `NEXT_PUBLIC_MIDPOINT_ESCROW_ADDRESS`, `NEXT_PUBLIC_USDC_AMOY_ADDRESS`, and WalletConnect project id are set exactly.

Verify Contract on PolygonScan

After deploying, verify the contract so users can inspect the source on amoy.polygonscan.com.

  1. Get a free API key from polygonscan.com/register
  2. Add POLYGONSCAN_API_KEY to your .env
  3. Run: npm run contract:verify:amoy