Prerequisites
Node.js 20 or higher
pnpm or npm
Supabase account
Cronos Testnet wallet with CRO and USDC
Installation
1
Clone Repository
2
Install Dependencies
3
Configure Environment
.env with your credentials:4
Setup Database
001_relay_core_schema.sql002_complete_schema.sql012_escrow_sessions.sql013_rwa_settlement.sql20260119_rwa_state_machine.sql20260122_fix_schema_gaps.sql
5
Start Services
Your First x402 Payment
1
Connect Wallet
Navigate to
http://localhost:5173 and connect your Cronos Testnet wallet.2
Navigate to Trade
Go to Dashboard → Trade page.
3
Get Quote
Click “Get Quote” and select “Direct Payment” option.
4
Sign Payment
Sign the EIP-3009 authorization when prompted by your wallet.
5
View Result
Payment settles via Facilitator and quote returns with pricing data.
Payment complete! You’ve executed your first x402 transaction.
Create a Session
1
Navigate to Sessions
Go to Dashboard → x402 Sessions.
2
Create Session
Click “Create Session” and set:
- Budget: 10 USDC
- Duration: 24 hours
3
Pay to Activate
Sign the x402 payment to deposit funds into the session.
4
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