ClaimEscrow Source on GitHub

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.

  1. 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.
  2. Baseline and pay. A first reading must show the seller holding the claim. Then the buyer pays the whole price into escrow.
  3. Transfer. When the register shows the buyer as holder, seen twice at least 2 minutes apart, the upfront goes to the seller.
  4. 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.

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

Full rules and limits: README. The contract's get_rules() returns them on chain.