Escrow System
Understanding the payment escrow system.
How Escrow Works
Escrow ensures fair payment for both customers and providers:
- Customer deposits funds when creating deployment
- Funds are locked in escrow account
- Provider executes workload
- Settlement runs every 60 seconds
- Funds transfer from escrow to provider
- Deployment pauses if escrow depletes
Escrow States
| State | Description | |-------|-------------| | Funded | Sufficient balance, deployment running | | Low Balance | Running but will deplete soon | | Depleted | Zero balance, deployment paused | | Closed | Deployment ended, remaining funds returned |
Settlement Process
Every minute, the orchestrator:
- Calculates blocks elapsed since last settlement
- Multiplies by agreed price per block
- Checks if escrow has sufficient funds
- Transfers amount from escrow to provider
- Updates lease payment records
Amount = Blocks × Price Per Block
Low Balance Alerts
You'll receive notifications when:
- Balance falls below 1 hour of runtime
- Balance falls below 10 minutes of runtime
- Deployment pauses due to depletion
Refunds
When you close a deployment:
- Final settlement runs immediately
- Provider receives payment for elapsed time
- Remaining escrow balance returns to your account
- Refund is available immediately