Skip to main content

Early development · Feedback welcome

Design · Reference

The chain is the record. What you see is someone's index of it.

Every balance, every “you own this”, every “paid” on a screen is an answer from an index: a service that read the chain and organised it. Nobody reads a blockchain directly to draw a screen. So two questions sit under every claim: who answered, and as of when. Most interfaces answer neither.

What you can check, and what you have to ask

Some answers carry their own evidence. Others can only be asked for. A good interface checks the first kind itself, and is plain about the second.

Is this transaction well formed, and are its signatures good? From its raw bytes, in any client.
Yes
Was it mined? A merkle proof against a header, and headers carry their own proof of work.
Yes, given block headers
Does this output pay this address? Read its locking script.
Yes
Is this output still unspent? A proof shows what happened, not that nothing has happened since. You ask a node or an indexer, and the answer is as fresh as theirs.
No
Which outputs belong to this address, or this wallet? An index by address. You can check each output it returns, but not that it left none out.
No
What is this output: a collectible, a token, a record? It follows from the output's history and its protocol's rules. An indexer traces that; tracing it yourself is possible, and heavy.
Partly

Three clocks

  • Chain order. A transaction comes after any whose coins it spends. It is the only order that is certain.
  • Block time. Set by the miner, coarse, and allowed to run out of order. An unconfirmed transaction has no time at all.
  • When an index saw it. Seconds after broadcast, usually; longer under load, or when the index falls behind. This is the clock every screen actually runs on.

What follows

  • A check made at a moment is right as of the index's last look. A Tardinian sent away a few seconds ago may still open the door.
  • An answer stays on screen after it stops being true. A balance, an admission, a “paid” is a snapshot until it is checked again.
  • Two indexes can disagree for a while. Neither need be wrong: they looked at different moments.
  • The order of unrelated unconfirmed transactions is a guess, and a replay of them should say so.

What Qart relies on today

Payments at checkout · WhatsOnChain, or BananaBlocks by configuration
Qart checks the transaction's outputs pay the expected address and amount. If no service answers, nothing is confirmed: it fails closed.
Ordinals, and the Tardinian room · GorillaPool's 1Sat indexer; content from ordfs
The indexer says what an ordinal is, its collection, its owner, and whether it's spent. Qart checks the owner's signature itself. Whatever the index doesn't know, the backend traces on the chain instead (WhatsOnChain, back to each ordinal's inscription), and the room says which source answered.
Coins at an address (labs) · WhatsOnChain
Address history and the transactions themselves. Qart orders them by what spends what.
The BSV price · bitblocks, which reads CoinGecko
Shown as a reference next to sats, never as the amount owed.

Bitblocks, our own indexer, doesn't answer ordinal questions yet. When it does, there are two independent answers to compare.

Design rules

  • Say who answered, and when, next to the answer.
  • Check what can be checked; ask only for what can't. Signatures, scripts and proofs are checked on the spot.
  • Fail visibly. “The indexer couldn't say” is a different answer from “none”.
  • Check again at the moment value moves: when a payment settles, when a door opens, before anything is signed.
  • Count confirmations instead of ticking a box: unconfirmed, one block, six.
  • Where the stakes are high, ask two indexes and show any disagreement.
  • Pin what can be pinned. A verified list of collection records beats markers anyone can copy.

Open questions

  • Proving you could spend a particular output, not just that you hold its address's key. Signing a transaction that spends it, without broadcasting it, would do; BIP-322 does this for Bitcoin, and no BRC covers it yet.
  • A standard way for an index to say “as of” in every answer: the block height and the mempool time it had seen.
  • A second, independent index for ordinals, so a disagreement can be seen at all. Reading the chain directly is one, and the Tardinian room falls back to it on its own; it is slow, so it suits a handful of ordinals, not a whole wallet.