Overview
The RelayCore Playground is a visual workflow builder using React Flow that lets you design and execute agent workflows. It has two execution modes:- Mock Mode: Simulates execution with fake data (for testing UI/UX)
- Real Mode: Executes actual blockchain transactions and x402 payments
Execution Modes
Mock Mode
Purpose: Test workflow logic without spending real USDC or gas. What’s Mocked:- x402 payments (simulated with fake transaction hashes)
- Blockchain calls (returns fake balances and data)
- Service execution (returns predefined responses)
- Agent discovery (returns mock agent list)
- UI rendering and node connections
- Workflow validation logic
- Error handling paths
- State management
Real Mode
Purpose: Execute actual workflows with real payments and blockchain transactions. What’s Real:- x402 payments via Crypto.com Facilitator SDK
- USDC transfers on Cronos Testnet
- Blockchain RPC calls to Cronos
- Service API calls with real responses
- Session budget deductions
- Reputation updates
- User connects wallet (MetaMask, WalletConnect)
- Workflow executes node by node
- x402 payments settle on-chain
- Results stream back in real-time
- Transaction hashes link to Cronos Explorer
How to Switch Modes
In the UI
In the Code
Node Execution Comparison
Payment Node
Mock Mode:Service Discovery Node
Mock Mode:Quote Aggregation Node
Mock Mode:Proof of Real Execution
Track 1: x402 Payment Applications
What Judges See in Real Mode:-
Payment Challenge:
-
EIP-3009 Signature:
-
Facilitator Settlement:
-
On-Chain Verification:
Track 4: Developer Tooling
What Judges See:-
Visual Workflow Builder:
- Drag-and-drop nodes
- Connect nodes with edges
- Configure node parameters
- Real-time validation
-
Execution Visualization:
- Node-by-node execution
- Real-time status updates
- Payment confirmations
- Error handling
-
SDK Integration:
-
MCP Tool Execution:
Session Integration
Creating a Session in Playground
Error Handling
Mock Mode Errors
Real Mode Errors
Implementation Files
Execution Engines
Mock Executor:src/pages/Playground/MockExecutionEngine.ts
src/pages/Playground/RealExecutionEngine.ts
Testing the Playground
Mock Mode Test
- Open Playground
- Select “Mock Mode”
- Add nodes: Discovery → Quote → Payment
- Click “Execute Workflow”
- See simulated results instantly
- No wallet connection required
- No USDC spent
Real Mode Test
- Open Playground
- Connect wallet (MetaMask)
- Ensure wallet has USDC on Cronos Testnet
- Select “Real Mode”
- Add nodes: Discovery → Quote → Payment
- Click “Execute Workflow”
- Approve wallet signatures
- See real transaction hashes
- Verify on Cronos Explorer
- Check USDC balance decreased
Judge Demonstration Script
Goal: Prove x402 works end-to-end with real blockchain transactions. Steps:- Show wallet balance: 10 USDC
- Execute workflow in Real Mode
- Show 402 response in network tab
- Show EIP-3009 signature generation
- Show Facilitator settlement
- Show transaction hash
- Open Cronos Explorer
- Verify USDC transfer on-chain
- Show wallet balance: 9.99 USDC
- Show payment recorded in database
- Network requests (402 → payment → retry)
- Transaction hashes (clickable links)
- Explorer screenshots
- Database records
- Wallet balance changes