Run a demo
Fifteen minutes, four windows, one facility from offer to recovery. The originator offers risk, an investor bids, the originator accepts, the facility amortises, the position trades, a default lands on whoever holds the risk that day, a recovery comes back — and KreditChain watches all of it. Expected figures are given at each step so you can see at a glance that it worked.
Before the room
Five minutes, the day before.
- Site deployed and the book empty. From the repo:
npm run deploy:site npm run members # originator, two investors, custodian, KreditChain — all active npm run reset:live # should say "Already empty" npm run chain:sync -- --status # the Solana operator has devnet SOL
- Put the chain on. In a terminal you leave open for the whole demo:
npm run chain:sync -- --watch
Every accept, sale, quarter, default and recovery is then mirrored onto Solana devnet within seconds. - Accounts. An originator (
originator), such as a bank, two investors (investor) so one can sell to the other, a custodian (custodian), and a registrar to settle secondary trades — anadmin, or the originator itself. If KreditChain's account isobserverit is read-only, which is the point: the venue cannot trade in its own market. - One window per role. A browser keeps one sign-in per window type:
| Window | Sign in as | Open |
|---|---|---|
| Chrome | Originator | Offer, then the Loan book in a second tab |
| Chrome Incognito | Investor A | Loan book and Positions |
| Edge | Investor B | Positions |
| Edge InPrivate | KreditChain / registrar | Desk — on the projector |
The screens
Each actor's page. Nothing is simulated: every button is a real write through the security rules, and every screen updates from the database's own change stream — no refresh.
Offer capacity
The originator's unlisted book. Pick a facility, set units and the spread it expects to pay. Matured facilities are shown greyed out and cannot be offered.
Open Offer →Loan book
Investors bid here. The originator ticks Originator view to accept bids, post quarters, and trigger a default or a recovery from the facility's panel.
Open Loan book →Positions
Holdings, premium, losses and recoveries — per holder, for the time each held the units. Sell here; buy another holder's units here.
Open Positions →Desk
Every facility, every bid as it lands, every position, the ledger and its anchor. The registrar settles secondary trades here.
Open Desk →Cash book
The money KreditChain never touches: premium paid, losses collected, recoveries passed on — reconciled from the register to the dollar.
Open Custodian →The run
Uses SG-2026-0003 — an amortising SME pool in Singapore, USD 63m, BBB. The figures below are what you should see if you follow the steps exactly.
- The originator offers. Originator · Offer. Click SG-2026-0003, keep the
ticket (126 units at 130 bps), press Offer to the market.
One unit is USD 100,000 of protected notional. The originator is not selling a loan — it is buying protection on a slice of one.
- It is already on the investor's screen. Investor A · Loan book. Don't refresh —
point at it. Open it and bid 126 units at 120 bps.
"You are leading"
The investor bids the spread it requires. Lower wins — an inverted auction.The bid is on KreditChain's Desk tape within a second.
- The originator accepts. Originator · Loan book, tick Originator view, open the
facility, press Accept.
One transaction: the allocation, the token and the hash-chain entry are written together or not at all.
- It is on the test chain. KreditChain · On chain. The facility's
token has appeared: KCSG0003 · supply 126 · Investor A 126. Click the mint's
↗ to open it on Solana Explorer — a real Token-2022 token, 1 token = 1 unit, with the facility's
details in its on-chain metadata. Press Read it from the chain: a public Solana node confirms every
balance matches the register.
The register is the source of truth; the chain is its public mirror. Anyone can check the token without trusting us — and the registrar, not the holder, can move it, which is what makes it a permissioned security rather than a bearer token.
- The facility lives. In the same panel press Post quarter 1, then
Post quarter 2. On Investor A's Positions:
premium earned ≈ USD 74k · outstanding below 12.6m
Capital returned and capital lost are two different numbers, never one shrinking balance.
- It trades.
- Investor A · Positions: Sell → 26 units at 125 bps → List.
- Investor B · Positions: under Secondary market, Buy.
- Registrar · Desk: under Secondary trades, Settle transfer.
Ownership moves when the registrar settles — the register is the source of truth. - A default. Originator · the facility's Credit event panel. Choose
Serious · 5%. The preview shows who loses what, then Trigger default →
Confirm (two clicks, no pop-up).
A −USD 500k (100 units) · B −USD 130k (26 units)
The risk moved with the token. Whoever holds the units on the day of the default takes the loss — including a buyer on the secondary market. The seller keeps the premium it earned before it sold.
- A recovery. Same panel: 50% back → Post recovery → Confirm.
A +USD 250k · B +USD 65k recovered
A recovery goes to whoever holds the units when the cash comes in. Principal does not come back — only part of the loss.
- Back to the chain. On chain again: the 26 tokens moved from A to B when the registrar settled, and the token's metadata now carries the default and the recovery: loss per unit USD 5,000 · recovered per unit USD 2,500.
- The wrap. Custodian: losses collected USD 630k · recoveries paid USD 315k, holder by holder. On chain: every issue, transfer, default and recovery as the memo it becomes. Desk: the ledger, counting every entry.
If something looks wrong
- No Accept button, no quarter or credit-event panel
- Tick Originator view on the Loan book, in the originator's window. Investors never see them.
- A bid is refused
- The spread must be at or below the level in the hint under the field — the originator's indicative, or 5 bps inside the leading bid.
- A screen stops moving
- Reload it. Every screen rebuilds its state from the database and holds nothing worth keeping.
- "No access" after signing in
- The account has no member record.
npm run grant -- --uid <uid> --role <role>.
Afterwards
The register is append-only for every browser — that is the point — so a demo is cleaned up from the repo, deliberately. Accounts and member records are kept. Stop the chain watcher first (Ctrl+C); the devnet tokens stay on devnet as harmless orphans, and the next demo gets fresh ones.
npm run reset:live -- --yes # type the project name to confirm
Rehearse without touching the live book. npm run emulate and
npm run demo:reset give you a local copy with ready-made accounts; add ?emulator=1 to any
URL and an amber bar marks the tab as local. npm run rehearse plays this whole run — and seven more
scenarios — automatically and checks every figure. The full run sheet is in DEMO.md.