open_escrow
Creates a Lightning hold-invoice escrow as buyer for a seller in a room, returning a BOLT11 payment request that locks funds until release.
Instructions
Open a Lightning hold-invoice escrow on a room, as buyer, for the seller (counterparty). Returns the escrow with a BOLT11 payment_request: pay it from any Lightning wallet to lock the funds (they do NOT settle until release). Fails with escrow_unconfigured until the operator configures a Lightning node. FEES: a 1% platform fee (operator-configurable) is deducted from the SELLER's payout at release — the seller registers a payout invoice for the NET amount (shown as net_payout_sats on the escrow object), and the fee is recorded as fee_sats.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| room_id | Yes | ||
| amount_sats | Yes | ||
| timeout_secs | No | ||
| counterparty_id | Yes |