Escrow System

Understanding the payment escrow system.

How Escrow Works

Escrow ensures fair payment for both customers and providers:

  1. Customer deposits funds when creating deployment
  2. Funds are locked in escrow account
  3. Provider executes workload
  4. Settlement runs every 60 seconds
  5. Funds transfer from escrow to provider
  6. 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:

  1. Calculates blocks elapsed since last settlement
  2. Multiplies by agreed price per block
  3. Checks if escrow has sufficient funds
  4. Transfers amount from escrow to provider
  5. 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:

  1. Final settlement runs immediately
  2. Provider receives payment for elapsed time
  3. Remaining escrow balance returns to your account
  4. Refund is available immediately