Try it yourself: sell a bankruptcy claim, and let the public register settle the price.
When a company goes bankrupt, its creditors' claims are bought and sold long before the court decides what each claim is worth. Today one side has to trust the other: the buyer pays in full and chases a refund if the claim is cut, or holds money back and the seller waits. Here the whole price waits in one escrow, and it moves only on what GenLayer validators read on the claim's entry in the public claims register.
This page runs on GenLayer Studio with free temporary accounts kept in your browser. You play the seller and the buyer. A whole sale takes about 25 to 35 minutes, most of it waiting for the register to change. Fictional case, register and companies; test GEN only.
- Offer. The seller freezes the terms: the claim, its register page, the price (60% of the allowed amount, 1.2 GEN for the full claim), a 50% upfront and the deadlines.
- Baseline and pay. A first reading must show the seller holding the claim. Then the buyer pays the whole price into escrow.
- Transfer. When the register shows the buyer as holder, seen twice at least 2 minutes apart, the upfront goes to the seller.
- Decision. When the court's decision is seen twice, code pays the rest: the price for the allowed amount to the seller, anything above it back to the buyer.
1. Accounts
Two temporary accounts, kept only in this browser, funded from Studio's built-in faucet.
Seller (the creditor selling its claim)
No account
Buyer (Harrowfield Credit Partners LP)
No account
2. Offer a claim (as the seller)
Pick what the court will decide. The claim's register page is published in advance by the fictional claims agent and changes on its own clock: the transfer shows 3 minutes after the acceptance deadline, the decision 12 minutes after it.
3. Act
Money
Terms
What the validators have seen
What the contract recorded
Open any deal
Finished examples with no wait: the claim sales of the live runs on Studio and Testnet Bradbury are on the main page, every transaction linked.
The rules, in brief
- The model copies; code decides. Each validator renders the register page; its model copies the debtor, the claim number and the holder, status and allowed amount, each with its label. Code finds every value after its label on the validator's own copy of the page, looks the whole status text up in a closed table (anything else is UNCLEAR and moves nothing) and classes the holder as buyer, seller or someone else by whole words.
- Exact agreement: validators accept a reading only if kind, reason, holder, status and amount equal their own.
- Seen twice: the transfer and the decision each count once two readings at least the confirmation time apart show them. One look moves nothing.
- Outcomes: at the confirmed transfer the seller gets the upfront. Allowed at an amount: the seller gets the price for that amount less what it already had, the buyer the rest. Disallowed: the buyer gets what is left. Withdrawn: the seller gets what is left. No transfer in time refunds the buyer; no decision in time splits what is left by a share frozen in the terms.
- Payouts are credits: each address withdraws its own. Either side may also give money to the other at any time.
Full rules and limits: README. The contract's get_rules() returns them on chain.