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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"room_id": "<room_id>",
"counterparty_id": "<counterparty_id>",
"amount_sats": "<amount_sats>"
},
"name": "open_escrow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| room_id | Yes | ||
| amount_sats | Yes | ||
| timeout_secs | No | ||
| counterparty_id | Yes |