Skip to main content
POST /clearing/claim A net creditor claims its net credit from the ClearingHouse once the cycle’s debtors have paid, or once unpaid debits have been taken from collateral. This endpoint submits claimNetCreditFor and pays the gas. The request carries no signature: the payout goes to creditor for the amount the committed Merkle leaf fixes, so the caller can only choose which claim is submitted. Send cycleId to claim one cycle. Leave it out and the facilitator claims every open credit the creditor has, up to 20 cycles in one call. POST /clearing/claim/verify takes the same body with cycleId required, runs every check without broadcasting, and answers with the /verify response shape.

Request body

string
CAIP-2 network ID. When omitted, the facilitator uses the first network it serves whose core knows the cycle or holds an open credit. Send it.
string
required
The address that is owed.
string
The cycle’s text ID: cycle_id_text from GET /core/participants/{participant}/positions. Omit to claim every open credit.

Responses

Every request the facilitator can parse returns 200. Read success.
boolean
required
For a call without cycleId, true means the sweep ran. Read each entry of claims for its own outcome.
string
Single claim only. Transaction hash.
string
string
string
Single claim only. The cycle’s on-chain ID, 32 bytes as hex.
string
Single claim only. The committed net credit, in base units. In a cycle marked as a shortfall the on-chain payout can be a pro rata share of this.
array
Sweep only. One entry per open credit.
string
string
string
claimed, already_claimed, cycle_finalized, not_claimable_yet, or a reason code from the table below.
string
string
Present when outcome is claimed.
boolean
Present when the cycle was not claimed.
string
Present when the cycle was not claimed.
string
A machine-readable reason code. Present on failure.
string
boolean
Whether repeating the same request later may succeed. Present on failure.

Reason codes

Status codes