Reading room notice
About the Ledger Room
The Ledger Room is a public library on Stacks testnet. The catalogue and every checkout are stored in a single Clarity contract: one map of books, one borrow function, one return function. There are no accounts, payments, or backend — availability is whatever the chain says it is.
How it works
- Connect a Stacks wallet (Leather or Xverse) — your address becomes your reader’s card.
- Borrow a book: the contract marks it checked out to your wallet and records the block height.
- Return it from My Books: only the borrowing wallet can return, so nobody can return someone else’s loan.
- Refresh any time — every status on the site is re-read from the contract, never kept locally.
The rules, in the contract’s words
| Code | What it means |
|---|---|
| err u400 | That book isn't in the catalogue. |
| err u401 | That book is already checked out. |
| err u402 | You can't return a book borrowed by another wallet. |
| err u403 | That book isn't checked out. |
| err u404 | This book needs a title. |
| err u405 | This book needs an author. |
| err u406 | This book needs a category. |
On-chain record
Everything lives in one deployed contract:
ST7B1XF8HXX8RDZMEVTD40A0YDYM2BY8490RDDM5.ledgerroom
view on the Stacks explorerBuilt with Scaffold Stacks · Clarity · Stacks.js. Testnet only — nothing here holds real value.