Skip to main content
POST
Settle a delegated batch.

Body

application/json
cosigner_pk
string
required

Hex-encoded compressed cosigner public key (must match our static key).

forfeit_psbts
string[]
required

List of base64-encoded partial forfeit PSBTs (signed with SIGHASH_ALL|ANYONECANPAY).

intent_message
string
required

JSON-encoded IntentMessage.

intent_proof
string
required

Base64-encoded intent proof PSBT (signed by the VTXO owner).

preimage
string | null

Optional hex-encoded preimage (the HTLC secret). Required together with swap_id.

swap_id
string | null

Optional swap ID. When provided alongside preimage, the intent must spend the swap's VHTLC, and the backend records the claim (ClientRedeemed) so it can collect its own leg: the EVM HTLC, the on-chain BTC HTLC or the held Lightning payment.

Response

Settlement completed

commitment_txid
string
required

Commitment transaction ID from the batch settlement.