GET /core/cycles/{cycle_id}/participants/{participant}/clearing-action
When core commits a netted cycle, it publishes a Merkle root of every participant’s net position on the ClearingHouse. To pay a net debit or claim a net credit, the caller proves the participant’s position against that root. This endpoint returns the contract, function, amount, and proof for the call. The SDKs and the facilitator’s sponsored endpoints use it for you.
Authorization
Bearer <access_token>. The token needs the scope payment:read. A claim_net_credit action is served to any such caller, because the claim always pays the creditor. A pay_net_debit action is served only to the participant, or to the admin or facilitator role.Path parameters
Core’s text ID for the cycle (
cycle_id_text), not the on-chain ID. Read it from positions.Query parameters
Responses
Native value to attach to the transaction. Non-zero only when a debtor pays a native ETH debit.
Status codes
Proof only
GET /core/cycles/{cycle_id}/participants/{participant}/clearing-proof returns the position and proof without choosing a call. It takes no query parameter. The token needs the scope payment:read, and the proof is served only to the participant, or to the admin or facilitator role; anyone else gets 401.
It answers 400 with { "error": "flat participants do not have a clearing proof" } for a participant whose debits and credits cancel, and 400 for a malformed address or a cycle that has no clearing batch yet. It answers 404 when the cycle does not exist or the participant has no position in it.