AuctionDeposit Source on GitHub

Try it yourself: a property auction where the bid deposits settle themselves.

At a property auction every bidder first lodges a deposit. Losing bidders wait for their money back, auctions are often cancelled or suspended, and some winners walk away. Nearly 300,000 property auctions are waiting in Greece, and only about 1 in 5 succeeds. Here every deposit waits in one escrow, and it moves only on what GenLayer validators read on the official auction record.

This page runs on GenLayer Studio with free temporary accounts kept in your browser. You play the creditor and two bidders. A whole auction takes about 20 to 35 minutes, most of it waiting for the auction to start. Fictional platform, property and bidders; test GEN only.

  1. Open. The creditor freezes the terms: the auction, the record page, a 1 GEN deposit and the deadlines.
  2. Deposit. Two bidders lodge exactly 1 GEN each before the auction starts, under the codes the record will print (B-201 and B-202).
  3. Read. After the auction, anyone asks for a reading. Each validator opens the record page and copies the status, winner and balance lines; code checks them and validators must agree exactly.
  4. Seen twice. A result counts only when two readings at least 2 minutes apart show it. Then code pays: unsuccessful bidders refunded, the winner's deposit to the creditor when paid or forfeited, everyone refunded if cancelled.

1. Accounts

Three temporary accounts, kept only in this browser, funded from Studio's built-in faucet.

Creditor

No account

Bidder 1 (code B-201)

No account

Bidder 2 (code B-202)

No account

2. Open an auction (as the creditor)

Pick what the official record will show after the auction. The record page is published in advance by the fictional platform and changes on its own clock.

Open any auction

Finished examples with no wait: the ten auctions 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.