Resources & Documentation

Everything needed to deploy the Next.js Sui x402 app, call the APIs, and fund the demo wallet correctly.

System Instructions

Agent-facing instructions for provisioning cards through the Sui USDC flow.

Open

OpenAPI Specification

Machine-readable route schema for the Next API handlers.

Open

LLM API Notes

Compact endpoint guidance for language-model integrations.

Open

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

Quick Links