Data model
The reference indexer keeps everything in memory and rebuilds it from the node on start. The records below are what any conforming indexer needs; field names match the HTTP API.
Ledger entry (one per unspent output that carries units)
| Field |
Type |
Example |
Notes |
outpoint |
txid:vout |
03b4ed47…834f:0 |
key |
addr |
string |
bcrt1q… |
from the output script; informative only |
value |
integer sat |
1000 |
output value |
ranges |
list of [a, b) |
[[0, 1000)] |
relative to the output's first satoshi |
amount |
integer |
1000 |
Σ (b − a) |
height |
integer |
255 |
block of the creating transaction |
Mint record
| Field |
Example |
Notes |
n |
33 |
1-based mint number |
txid |
03b4ed47…834f |
|
height |
255 |
|
tier |
80 |
lock level β that matched |
addr |
bcrt1q… |
address of output 0 |
wave |
1 |
schedule step in force (Drafts A and C) |
difficulty |
1 |
D of the block |
score |
69.06 |
score_fp / ONE, display only |
Rejection record
| Field |
Notes |
txid, height |
|
code |
E02…E09 (Error codes) — not yet available; the reference build stores free text |
why |
list of per-condition lines |
Event (one per transaction that moved units)
| Field |
Example |
txid, height |
|
kind |
mint or transfer |
delta |
{"bcrt1q…": 1000} — net change per address; special keys for OP_RETURN burns and fee burns |
Chain position
| Field |
Notes |
height, tip |
last applied block |
hashes |
hash of every applied block, used for reorg detection and for the state digest |
mints, burned |
counters |
d_fp |
difficulty in force for the next block, ONE · D |
Storage
The reference build has no database; it replays on start. An indexer with persistent storage MUST store enough to undo a block (spent ledger entries per block) or fall back to full replay.