Overview
RWA (Real-World Asset) settlement enables off-chain service execution with on-chain payment settlement. Services register with SLA terms, agents request execution, providers submit cryptographic proofs, and payments are released or refunded based on SLA compliance. Key Insight: RWAs in RelayCore are not tokenized assets—they are processes that agents settle with provable outcomes.Complete Settlement Flow
1. Service Registration with SLA
Provider registers an RWA service with explicit SLA terms:SLA Terms Breakdown:
maxLatencyMs: Maximum time from request to proof submissionrequiredFields: Fields that must be present in proof resultproofFormat:'json'(basic),'signed'(EIP-191), or'hashed'(keccak256)refundConditions: Conditions that trigger automatic refundvalidityPeriodSeconds: How long proof remains valid
2. Agent Requests Execution
Agent requests off-chain execution with escrow-backed payment:What Happens:
- System checks escrow session has sufficient funds
- If funds available: creates execution request in
rwa_execution_requeststable - If insufficient: returns
rejectedstatus - Funds remain locked in escrow until settlement
3. Provider Executes Off-Chain
Provider performs real-world service (KYC check, shipping verification, etc.):
4. Provider Submits Proof
Provider submits cryptographic proof for verification:Verification Response:
5. System Verifies SLA Compliance
RelayCore automatically verifies proof against SLA terms:SLA Verification Checks:
- Latency:
latencyMs <= maxLatencyMs - Fields: All
requiredFieldspresent inproof.result - Signature: EIP-191 signature verifies to
providerAddress - Validity: Proof submitted within
validityPeriodSeconds
RWA Service Types
| Type | Description | Typical SLA |
|---|---|---|
compliance_check | KYC/AML verification | 30s latency, signed proof |
market_report | Real-time market data | 10s latency, hashed proof |
trade_confirmation | Trade execution proof | 60s latency, signed proof |
settlement_reconciliation | Payment reconciliation | 120s latency, signed proof |
price_verification | Oracle price attestation | 5s latency, signed proof |
kyc_verification | Identity verification | 30s latency, signed proof |
execution_proof | Service execution proof | 60s latency, signed proof |
data_attestation | Data integrity proof | 15s latency, hashed proof |
State Machine Integration
RWA settlement can also use the state machine for complex multi-step processes:CREATED→VERIFIED→ESCROWED→IN_PROCESS→FULFILLED→SETTLED- Each transition requires specific
AgentRole - Each transition costs USDC (deducted from session)
- Invalid transitions are rejected
Complete Example: KYC Verification
SLA Violation Scenarios
Scenario 1: Latency Exceeded
Scenario 2: Missing Required Fields
Scenario 3: Invalid Signature
Scenario 4: Proof Expired
Database Schema
rwa_execution_requests
rwa_state_machines
rwa_state_transitions
Best Practices
1. Set Realistic SLA Terms
2. Always Sign Proofs
3. Handle Refunds Gracefully
Next Steps
RWA SDK
Build RWA services with SDK
Session Management
Use escrow sessions for RWA
x402 Protocol
Understanding payment flow
State Machine
Multi-step RWA processes