Skip to main content

System Requirements

Node.js

Version 20 or higher

Package Manager

pnpm (recommended) or npm

Database

Supabase account

Wallet

Cronos Testnet with CRO and USDC

Installation Steps

1

Clone Repository

2

Install Dependencies

Using pnpm (recommended):
Or using npm:
3

Environment Configuration

Copy the example environment file:
Edit .env with your credentials:
4

Database Setup

Run migrations in order:
Or manually execute SQL files:
  1. supabase/migrations/001_relay_core_schema.sql
  2. supabase/migrations/002_complete_schema.sql
  3. supabase/migrations/012_escrow_sessions.sql
  4. supabase/migrations/013_rwa_settlement.sql
  5. supabase/migrations/20260119_rwa_state_machine.sql
  6. supabase/migrations/20260122_fix_schema_gaps.sql
5

Start Services

Open three terminal windows:Terminal 1 - Frontend
Runs on http://localhost:5173Terminal 2 - GraphQL API
Runs on http://localhost:4000Terminal 3 - Indexers
Background cron jobs
6

MCP Server (Optional)

Verification

Navigate to http://localhost:5173You should see the Relay Core dashboard. Connect your wallet to verify integration.

Troubleshooting

If port 5173 or 4000 is already in use:
Verify Supabase credentials in .env:
  • Check VITE_SUPABASE_URL matches your project URL
  • Verify VITE_SUPABASE_ANON_KEY is correct
  • Ensure Row Level Security policies are configured
  • Ensure you’re on Cronos Testnet (Chain ID 338)
  • Verify VITE_WALLETCONNECT_PROJECT_ID is set
  • Check browser console for errors
Clear cache and reinstall:

Next Steps

Quick Start

Execute your first x402 payment

Environment Variables

Learn about all configuration options