Resources & Documentation
Everything needed to deploy the Next.js Sui x402 app, call the APIs, and fund the demo wallet correctly.
Next.js App Structure
-src/app/page.js - SSR landing page
-src/app/demo/page.js - demo page shell
-src/components/DemoRunner.js - client-side demo controls
-src/app/api/provision/route.js - Sui x402 protected route
-src/app/api/demo/run-agent/route.js - direct Sui demo settlement
-src/app/api/cards/route.js - in-memory provisioned card listing
-src/sui.js - Sui wallet, USDC, and transaction helpers