Skip to main content
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

string
required
header
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

string
required
path
Core’s text ID for the cycle (cycle_id_text), not the on-chain ID. Read it from positions.
string
required
path

Query parameters

string
required
query
pay_net_debit|claim_net_credit

Responses

string
required
The ClearingHouse address.
string
required
payNetDebit or claimNetCreditFor.
string
required
string
required
On-chain cycle ID, the value the contract call takes.
string
required
string
required
string
required
string
required
The amount argument, in base units as a decimal string.
string
required
Native value to attach to the transaction. Non-zero only when a debtor pays a native ETH debit.
string[]
required
Merkle proof of the participant’s position.

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.