Skip to main content

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

1. Service Registration with SLA

Provider registers an RWA service with explicit SLA terms:
SLA Terms Breakdown:
  • maxLatencyMs: Maximum time from request to proof submission
  • requiredFields: Fields that must be present in proof result
  • proofFormat: 'json' (basic), 'signed' (EIP-191), or 'hashed' (keccak256)
  • refundConditions: Conditions that trigger automatic refund
  • validityPeriodSeconds: How long proof remains valid
2

2. Agent Requests Execution

Agent requests off-chain execution with escrow-backed payment:
What Happens:
  1. System checks escrow session has sufficient funds
  2. If funds available: creates execution request in rwa_execution_requests table
  3. If insufficient: returns rejected status
  4. Funds remain locked in escrow until settlement
3

3. Provider Executes Off-Chain

Provider performs real-world service (KYC check, shipping verification, etc.):
4

4. Provider Submits Proof

Provider submits cryptographic proof for verification:
Verification Response:
5

5. System Verifies SLA Compliance

RelayCore automatically verifies proof against SLA terms:
SLA Verification Checks:
  1. Latency: latencyMs <= maxLatencyMs
  2. Fields: All requiredFields present in proof.result
  3. Signature: EIP-191 signature verifies to providerAddress
  4. Validity: Proof submitted within validityPeriodSeconds
6

6. Settlement

System settles based on SLA verification:
If SLA Met (proof valid):
If SLA Violated (proof invalid):

RWA Service Types


State Machine Integration

RWA settlement can also use the state machine for complex multi-step processes:
State Machine States:
  • CREATEDVERIFIEDESCROWEDIN_PROCESSFULFILLEDSETTLED
  • Each transition requires specific AgentRole
  • Each transition costs USDC (deducted from session)
  • Invalid transitions are rejected
Transition Costs:

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