Files
the_order/apps/portal-public

Portal Public

Public web presence for The Order.

Development

# Install dependencies
pnpm install

# Run development server
pnpm dev

# Build for production
pnpm build

# Start production server
pnpm start

Environment Variables

See .env.example for required environment variables.

x402 Example Route

This app now includes an App Router example at GET /api/premium-content.

It mirrors the standard thirdweb/x402 settlement flow:

  • settles a payment from the x-payment or payment-signature header
  • uses Chain 138 by default
  • defaults to the GRU v2 x402 surface: cUSDC_V2 (0x219522c60e83dEe01FC5b0329d6fA8fD84b9D13d)
  • can be switched to cUSDT_V2 with X402_PAYMENT_TOKEN_SYMBOL=cUSDT_V2
  • returns {"data":"premium content"} when payment succeeds

Set THIRDWEB_SECRET_KEY and X402_SERVER_WALLET_ADDRESS in your environment before calling the route.