Open Protocol Indexer (OPI) is an open-source Bitcoin metaprotocol indexer maintained in the Best in Slot repository. It separates a common Ordinals-derived inscription index from protocol-specific modules, including a dedicated Bitmap indexer.
Repository boundary
The public bestinslot-xyz/OPI repository was created on 5 December 2023. Its first commit, 4abc0c2, already contained the Bitmap module, a BRC-20 module, APIs, database schemas and a fork of ord. The README described that source state as using ord 0.9.0 and called Bitmap the second OPI module. First public OPI commit — direct repository record
That is a strong public-code boundary, not proof that development began that day.
The timing also prevents a common historical conflation. bitmap.land documented a Trac-powered Bitmap index on 28 July 2023, more than four months before the OPI repository existed. OPI and the Trac Bitmap indexer are therefore separate indexing lineages in the surviving record. bitmap.land documentation — contemporary first-party record
What the first Bitmap module actually did
The initial Bitmap implementation identified itself in source as bis-bitmap-open-source v0.1.0. Its parser accepted UTF-8 inscription bodies ending in .bitmap, then required the prefix to contain decimal digits only. Leading zeroes were rejected except for 0.bitmap. Claims whose District number was greater than the Bitcoin block height in which the inscription was indexed were rejected. Initial Bitmap indexer source
The original module read text/plain inscriptions for each reveal block and explicitly ordered them by ord inscription number ascending. The database placed a unique constraint on bitmap_number; an attempted duplicate was ignored. In that code version, the first accepted row for a District therefore remained the recorded winner. Initial source · Initial database schema
This is more specific than the phrase “follows the Bitmap standard.” It shows one executable answer to which media type was read, how a District string was parsed, how future-height claims were rejected, how candidates were ordered, and how duplicate District claims were handled.
A cursed-inscription wrinkle remains open
The first Bitmap module's visible SQL orders by inscription number but does not itself contain the later commented positive-number condition seen in current source. That is not enough to conclude that OPI v0.1.0 accepted every negatively numbered cursed inscription as a Bitmap claim: upstream tables and the bundled ord fork also determine what records reached the module.
BOMB therefore records the code difference without promoting it into a historical validity claim. Reproducing the first release against its original database pipeline is the cleaner test.
Reorg handling
OPI's initial Bitmap module stored the Bitcoin block hash associated with every indexed height. Before advancing, it compared that stored hash with the common Ordinals/metaprotocol index. If they diverged, the module searched backward through the most recent ten blocks for a matching ancestor, deleted Bitmap state above that point, and replayed from the surviving chain. Initial reorg logic
That distinction matters to an archive. A metaprotocol index is not merely a list of strings found in blocks; it also needs a policy for Bitcoin reorganizations so its derived state follows the accepted chain.
Event hashes and index comparison
From the first public commit, the Bitmap module generated a SHA-256 hash of accepted Bitmap events for each block and chained those into a cumulative event hash. The README presented those hashes as a way to compare databases. The Bitmap API exposed per-block event/cumulative hashes, a hash of all indexed Bitmaps, and the inscription ID associated with a District. Initial OPI README
This turns “our indexes agree” into something more testable. Two implementations can compare a cumulative digest and narrow a divergence to a block.
On 18 January 2024, OPI's v0.3.0 update added Bitmap and SNS hash reporting alongside SNS indexing and restore tooling. OPI v0.3.0 update — direct repository record
A hash-format change on 18 January 2024
There is a reproducibility trap inside those hashes. In the first public Bitmap module, each accepted event was appended as inscribe;inscription_id;bitmap_number|, and the entire block event string was hashed with the final pipe still present. The 18 January 2024 v0.3.0 commit added a step removing that final separator before hashing. The README pseudocode changed in the same commit. For a block with at least one accepted Bitmap, the two code versions produce different event hashes from otherwise identical accepted event lists. December 2023 module — direct source · v0.3.0 change — direct diff
A second detail survives both versions. When no preceding cumulative-hash row exists, the code sets cumulative_event_hash = block_event_hash directly. At subsequent heights it hashes the UTF-8 concatenation of the previous cumulative digest's hex string and the current block-event digest's hex string. The README's shorthand instead says to hash last_cumulative_hash + block_hash with an empty predecessor for the first block, which would add an extra hash at the beginning if followed literally. The executable bootstrap rule is more precise than that pseudocode. First implementation · Later implementation · README formula
Thus a changed OPI hash does not, on its own, prove a changed District winner. Historical comparisons need the software revision, event serialization, starting state and chain height; a preserved service response would establish which digest an operator actually reported. The code comparison does not establish which revision any named marketplace deployed.
What OPI's event digest does not commit to
The Bitmap event hash covers the serialized accepted District events, and the cumulative hash chains those event digests. Neither formula incorporates the Bitcoin block header hash. OPI stores block hashes separately for reorganization checks; the later reporting payload transmits block_hash beside block_event_hash and cumulative_event_hash as distinct values. These are direct observations of the implementation, not proof that any named deployment followed the same Bitcoin chain. Initial Bitmap hashing and reorg source · Later hashing and reporting source
For a block with no newly accepted District, both serialization versions hash the empty event string. A previous cumulative difference can nevertheless persist across those empty-event blocks. Matching per-block hashes therefore need not mean matching cumulative histories. Conversely, a matching cumulative event digest, compared at the same height with the same serialization and starting state, is a check on accepted event history, not an authenticated Bitcoin-header commitment or a record of rejected candidate claims. This is a deduction from the published code, not evidence of a particular historical operator disagreement.
A reproducible one-event hash fixture
The byte-level serialization change is visible with a constructed one-event example. Take the real inscription ID for 0.bitmap, 86539aff946c437af8088955827b7e6ff48fc6192836d4071b697b5359b7a732i0, and suppose it is the only accepted District event in a block. The event body is inscribe;86539aff946c437af8088955827b7e6ff48fc6192836d4071b697b5359b7a732i0;0. This is not a reconstruction of block 792,435 or an observed historical API response.
- Original December 2023 version: SHA-256 of the UTF-8 event string with a final
|is1685d047ba078a43ca7877133c772b5699524bfbcbc5c95f05cd53d0d1b577d6. - 18 January 2024 and later version: SHA-256 of the same event string without the final
|is7c2f1693fbda5b780dcf5f11f8371f2ea40c01ea814572664506228bc3cb2a3d. - No accepted events: SHA-256 of the empty string is
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855in both versions.
These are independently calculated test vectors, not copied production values. They reproduce a difference in encoding without implying that accepted District ownership changed. December 2023 source · Later source
Registry-state hashes versus event-history hashes
A distinct Bitmap endpoint, /v1/bitmap/get_hash_of_all_bitmaps, computes a hash of the accepted District registry. Both the December 2023 API and the later implementation select bitmap_number, inscription_id from bitmaps in ascending District-number order. They concatenate each row as bitmap_number;inscription_id, separated by | with no final separator, and take SHA-256. This is a registry-state digest, not the chained per-block accepted-event digest described above. Initial API source · Later API source
Two Bitmap indexers that finish with the same District-to-inscription mapping can therefore have the same registry-hash input while their historical event hashes differ. A registry hash does not commit to rejected candidates, historical event order or Bitcoin headers. This is a deduction from the algorithms, not observed operator agreement.
The endpoint reports the database's maximum indexed block_height, but its registry query does not filter by that height or any requested historical height. One implementation uncertainty also deserves recording: both versions pass a parameter array containing that height although the registry query contains no placeholder. The source establishes what the algorithm intends to hash; it does not establish that any historical or currently deployed endpoint executed successfully. An actual response or local execution test is still needed. Original endpoint
Evolution
- 4 January 2024 — the common
ordbase moved to 0.14.0 and BRC-20-specific Jubilee handling was added. Direct repository record - 18 January 2024 — v0.3.0 added SNS, restore tooling and Bitmap/SNS hash reporting. Direct repository record
- 13 June 2025 — the Bitmap module moved onto the repository's DB-reader interface and began storing inscription numbers directly with District rows. A follow-up fix prevented updates when the same Bitmap number was encountered again. DB-reader migration · Inscription-number storage · Duplicate-number fix
- 21 July 2025 — the Bitmap database schema was updated to identify the indexer as version 1.0.0. Direct repository record
As of the repository state inspected in September 2026, the README describes OPI as using a lightly modified ord 0.23.2 and still lists Bitmap as a supported module. The Bitmap module identifies itself as opi-bitmap-full-node v1.0.0. Current README · Current Bitmap source
Hosted API retirement versus the open indexer
Best in Slot's own API documentation says that its hosted Ordinals API at api.bestinslot.xyz has been retired. It recommends running the open-source OPI software instead and explicitly lists Bitmap among its modules. This is a first-party service notice, not evidence that the OPI software or every independently operated OPI instance ceased running. The retained hosted-API reference is historical documentation, not a promise that its endpoints still answer requests. Best in Slot's retirement and migration notice
The separate opi.network site describes a reporting network of indexers and presents Bitmap alongside BRC-20 and other protocols. On 15 October 2026, its public index listed reporting operators, but the inspected page did not establish the current height, hash or ruleset of a particular Bitmap operator. The network's own reporting count is a first-party directory claim, not independent proof that its Bitmap registries agree or that any named marketplace consumes them. OPI network indexer directory
Another operator's documentation, OrdinalsBot's OPI API guide, describes BRC-20 API endpoints outside Best in Slot's former hosted API. This illustrates why a provider's retirement and the survival of the software/API convention must be recorded separately; it does not establish an OrdinalsBot Bitmap validator or a verified current API response. OrdinalsBot OPI API documentation
The useful archival unit is therefore a named operator, a module and version, an indexed height, a query result and an observation date. The repository, a reporting network, a retired hosted endpoint and a marketplace backend are not interchangeable sources.
Relationship to the Bitmap standard
The first OPI release linked directly to the then-current Bitmap District rules and encoded an inscription-number-first winner selection. The public Bitmap standard has its own version history: the July 2023 rules explicitly used lowest valid inscription number, while the September wording changed to the first valid inscription transaction within a block.
OPI's December code therefore lands after that documentation change while still exposing inscription-number ordering in its implementation. BOMB records the tension rather than guessing whether it was intentional, inherited from an earlier interpretation, or behaviourally equivalent for all real conflicts.
The useful next question is empirical: does any same-block contested District produce different winners under those two orderings? If not, the textual difference may be historically real but operationally inert. If yes, the exact indexer version becomes part of Bitmap ownership history.
Why OPI matters to the archive
OPI preserves an open executable Bitmap interpretation from December 2023, exposes deterministic hashes designed for comparing independently built indexes, and shows that “the Bitmap index” is software with versions, dependencies and migration decisions rather than a timeless lookup table.
That makes OPI useful evidence for reconstructing Blockout, disputed District claims and indexer divergence. It should not be elevated into a protocol oracle merely because its code is public.
Related pages
Open research
Run OPI's first public Bitmap release against a historically faithful December 2023 data set and compare its District winners with the current release.
Find same-block duplicate Bitmap claims and test the July inscription-number rule against the September transaction-order wording.
Use surviving OPI event hashes to narrow the exact block at which independent Bitmap indexes diverged.
Test the later 796,515 Blockout boundary claim against an independently reproduced OPI index, while keeping in mind that OPI was published months after Blockout.