Prerequisites
Cronos Testnet wallet with CRO and USDC
Installation
Clone Repository
git clone https://github.com/winsznx/relaycore.git
cd relaycore
Configure Environment
Edit .env with your credentials:VITE_SUPABASE_URL=https://your-project.supabase.co
VITE_SUPABASE_ANON_KEY=your-anon-key
VITE_WALLETCONNECT_PROJECT_ID=your-project-id
WALLET_PRIVATE_KEY=your-private-key
RELAY_PRIVATE_KEY=your-relay-wallet-key
ESCROW_CONTRACT_ADDRESS=0x9D340a67ddD4Fcf5eC590b7B67e1fE8d020F7D61
Setup Database
Or run migrations manually in order:
001_relay_core_schema.sql
002_complete_schema.sql
012_escrow_sessions.sql
013_rwa_settlement.sql
20260119_rwa_state_machine.sql
20260122_fix_schema_gaps.sql
Start Services
pnpm dev # Frontend (port 5173)
pnpm dev:graphql # GraphQL API (port 4000)
pnpm dev:indexers # Background cron jobs
Your First x402 Payment
Connect Wallet
Navigate to http://localhost:5173 and connect your Cronos Testnet wallet.
Navigate to Trade
Go to Dashboard → Trade page.
Get Quote
Click “Get Quote” and select “Direct Payment” option.
Sign Payment
Sign the EIP-3009 authorization when prompted by your wallet.
View Result
Payment settles via Facilitator and quote returns with pricing data.
Payment complete! You’ve executed your first x402 transaction.
Create a Session
Navigate to Sessions
Go to Dashboard → x402 Sessions.
Create Session
Click “Create Session” and set:
- Budget: 10 USDC
- Duration: 24 hours
Pay to Activate
Sign the x402 payment to deposit funds into the session.
Use Session
Select the session when making paid requests. Relay pays agents on your behalf.
Next Steps
SDK Documentation
Build agents with the Relay SDK
MCP Server
Integrate with Claude via MCP
API Reference
Explore GraphQL and REST APIs
Smart Contracts
Learn about on-chain components