MPP Session Intent

Streaming micropayments via payment channels. Ideal for LLM token billing, real-time data feeds, and continuous compute.

How Sessions Work

  1. Agent deposits funds into an on-chain escrow
  2. Creates a channel with a spending limit and TTL
  3. Sends signed vouchers with cumulative amounts as service is consumed
  4. Server verifies signatures — no blockchain transaction per request
  5. Channel settles on-chain when closed or expired

Session Challenge

WWW-Authenticate: Payment
  realm="zeny",
  method="tempo",
  intent="session",
  max_amount="10.00",
  currency="0xfafddbb3...USDM",
  recipient="0xFacilitator...",
  ttl="3600"

Session Credential

Authorization: Payment base64url({
  "channelId": "0xChannel...",
  "voucher": {
    "cumulativeAmount": "0.50",
    "signature": "0x..."
  }
})

Benefits

  • Near-constant time verification (no on-chain tx per request)
  • Granular billing (per-token, per-byte, per-second)
  • Ideal for streaming and high-frequency interactions

Endpoint

POST /api/mpp/session