Guide

Music Exchange is a paper-money exchange built the way Hyperliquid is: spot orders are matched on a chain that four validators run together, and every block, transaction and log can be checked. Nothing here is real money.

Faucet

Test money for any address, once an hour: the same amounts a new account starts with. The spot part arrives as transactions on the chain, signed by the exchange's custody key, so you can follow each one in the explorer. The margin part (for perpetuals and options) is booked by the exchange server.

How to play

You already have an account: the first time you open the exchange, your browser makes a key, keeps it, and the exchange credits that address with 100 000 USDT, 1 BTC and 20 ETH. To trade as your own wallet instead, click Connect wallet in the top bar and approve three MetaMask prompts (add the network, connect, one signature). After that MetaMask is not asked again for orders.

Spot — on the chain

  1. Open Spot and pick BTC/USDT (search for ETH/USDT too).
  2. Limit: type a price and an amount under Buy BTC or Sell BTC, or click a row of the order book to copy its price. 25 % … 100 % size the order from your balance.A buy below the market waits in the book and shows under Open orders.
  3. Market: buys or sells at once against the market maker's quotes.The trade appears in Recent trades and your balance changes within a fraction of a second.
  4. Stop: an order that waits for a trigger price, then places itself.
  5. Cancel from Open orders; see what filled in Order history.

Perpetuals and options — on the exchange server

Perpetuals: choose leverage and cross or isolated margin, then Buy / Long or Sell / Short; your position, margin and liquidation price show under the chart, and funding is paid every hour. Options: pick an expiry and a strike on the board and buy or sell calls and puts. Both are matched by the exchange server, not yet by the validators, so they do not appear in the explorer.

How to test it

Ten minutes, start to end. Each step says what you should see; if you see something else, that is a bug worth reporting.

  1. Get test funds with the faucet above.Three credit transactions (USDT, BTC, ETH), each "Success" in a block, each with an AcctDelta log of reason "deposit" on your address.
  2. Place a limit buy on Spot, well below the market (for example 5 % under), 0.01 BTC.In the explorer, under your address: a Place order transaction. Its logs: ActionExecuted, OrderAccepted (your price and size), AcctDelta "reserve" (the USDT now held for the order), BookDelta (the book level grew).
  3. Cancel it.A Cancel order transaction: OrderCanceled (reason user), AcctDelta "release".
  4. Buy at market, 0.001 BTC.A Trade log naming you as taker and the market maker as maker, the price, the fee, and four AcctDelta logs: the BTC and USDT that moved each way.
  5. Try to break it. Sell more BTC than you have; place a price 50 % away from the market.The exchange or the chain refuses with a reason (for a rejected one, the explorer shows "Rejected" and the code); your balance does not change.
  6. Verify one of your transactions in your browser and check the validators (next section).

How to verify, and read the logs

The Explorer is this chain's Etherscan. Search by a block number, a transaction hash or an address.

  • Block: a batch of transactions the validators agreed on, in order. Blocks come several times a second; most are empty when nobody trades.
  • Transaction: one signed action (place, cancel, transfer, approve agent, a faucet credit). Its hash is the BLAKE3 hash of the exact bytes that were signed.
  • Logs: what executing it did, in order — the order accepted, the trade, every balance change with its reason. Every validator produces the same logs; that is the point of the chain.

Three checks, from strongest to weakest

  1. The signature, in your browser. Open a transaction and press Verify. Your browser decodes the bytes the validators received, recomputes the hash and recovers who signed them, with the validators' own Rust code. Nobody — not this exchange — can make a transaction appear signed by your wallet without your key.
  2. The validators agree. Below, the exchange reads back the recent blocks each validator wrote to its own event stream and compares them height by height: the same block hashes and, byte for byte, the same logs mean each validator executed the same transactions to the same results.
  3. The exchange matches the chain. The last line compares the balances and orders this exchange shows you with the chain's own.

What this does not prove

The explorer is served by the exchange, which reads the validators' event stream: it could leave a transaction out, but it could not forge a signature. All four validators run on one machine (jp), so they protect against one of them failing or misbehaving, not against that machine. The history is kept in the database through its raft cluster: node 1 keeps 7 days of transactions and logs and 30 days of blocks; if it is down, the other nodes still answer for the last 24 hours.

On the server

With a shell on the box: matchctl status /run/music/node-?.sock prints each validator's height and root; matchctl tail /run/music/node-0.sock /run/music/node-0.ring prints every log as it commits.

Validators asked just now, each one directly