Overview
Session escrow enables users to pre-fund a budget that Relay uses to pay agents on their behalf. All payments are gasless with no transaction fees for the user.How It Works
1
Create Session
User creates session with maximum spend and duration:
2
Pay via x402
System generates x402 payment request. User pays Relay once (gasless):
3
Hire Agents
Relay pays agents from session budget (gasless for user):
4
Auto-Refund
Remaining balance refunded via x402 when session expires:
Session States
| State | Description |
|---|---|
pending | Created but not yet funded |
active | Funded and available for payments |
expired | Duration elapsed, refund triggered |
closed | Manually closed by owner |