BOMBARCHIVE
Explore

A living reference collection. Written in the wiki, preserved in Git.

The archiveOrdinals

Old revision: Ordinal recursion

archive: complete recursion endpoint chronology

Ordinal recursion is the mechanism by which an inscription can access a whitelisted set of resources exposed by ord server despite the normal inscription sandbox. Recursive endpoints can return other inscription content, inscription metadata and relationships, sat and UTXO data, transactions, and selected Bitcoin block data. Current recursion documentation — first-party repository

Compatibility contract

The ord documentation gives recursive endpoints stronger compatibility promises than ordinary server routes:

  • recursive endpoints will not be removed;
  • existing object fields will not be renamed or change type;
  • new fields may be added and fields may be reordered.

Clients therefore need to tolerate unfamiliar fields and must not depend on JSON field order. Current recursion documentation

That promise matters because an inscription may be immutable while the software serving it continues to evolve.

Endpoint map

Shared inscription content

Endpoint Returns What it enables
/content/<INSCRIPTION_ID> Raw content of another inscription Shared code, images, audio, stylesheets, fonts and other reusable resources.

This is the primitive behind much of Ordinals Public Goods. An HTML inscription can load a dependency by inscription ID instead of embedding another copy of the same resource.

Bitcoin block data

Endpoint Returns What it enables
/r/block/<QUERY> Complete serialized Bitcoin block, queried by height or hash, hex encoded Local block and transaction decoding inside an inscription.
/r/blockhash Latest block hash Tip-aware applications.
/r/blockhash/<HEIGHT> Block hash at a given height Height-to-hash resolution.
/r/blockheight Latest block height Current-chain-height logic.
/r/blockinfo/<QUERY> Structured block information for a height or hash Fee, size, difficulty and other block-level applications without decoding the full block.
/r/blocktime Latest block header timestamp Time-aware interfaces, with the usual limits described at Bitcoin time.

The raw-block endpoint is the important boundary here. It exposes the serialized block itself instead of only selected pre-interpreted fields. A recursive application can decode transactions locally and apply its own higher-level rules.

Inscription relationships and content

Endpoint Returns What it enables
/r/children/<INSCRIPTION_ID> First 100 child inscription IDs Parent-child collection discovery.
/r/children/<INSCRIPTION_ID>/<PAGE> A page of 100 child IDs Large collection pagination.
/r/children/<INSCRIPTION_ID>/inscriptions Details for first 100 child inscriptions Rich child browsers without one request per child.
/r/children/<INSCRIPTION_ID>/inscriptions/<PAGE> Paginated child details Large hierarchy traversal.
/r/parents/<INSCRIPTION_ID> First 100 parent inscription IDs Reverse provenance traversal.
/r/parents/<INSCRIPTION_ID>/<PAGE> A page of parent IDs Multi-parent pagination.
/r/parents/<INSCRIPTION_ID>/inscriptions Details for first 100 parent inscriptions Rich ancestry interfaces.
/r/parents/<INSCRIPTION_ID>/inscriptions/<PAGE> Paginated parent details Larger ancestry graphs.
/r/inscription/<INSCRIPTION_ID> Structured information about an inscription Index-aware inscription applications.
/r/metadata/<INSCRIPTION_ID> Hex-encoded CBOR metadata in JSON Metadata-aware rendering and application logic.
/r/undelegated-content/<INSCRIPTION_ID> The target inscription's own content rather than delegated content Inspection of the original body behind delegation.

These routes turn Inscription provenance and Inscription delegation into queryable application primitives rather than facts that only an explorer UI can display.

Sat-indexed data

The following routes require the server to run with --index-sats:

Endpoint Returns What it enables
/r/sat/<SAT_NUMBER> First 100 inscription IDs on a sat Sat-centric inscription discovery.
/r/sat/<SAT_NUMBER>/<PAGE> Paginated inscription IDs Reinscription histories on heavily used sats.
/r/sat/<SAT_NUMBER>/at/<INDEX> Inscription ID at a positive or negative index First/latest/Nth inscription lookup.
/r/sat/<SAT_NUMBER>/at/<INDEX>/content Content of the indexed inscription Direct content selection from a sat's inscription stack.

The current documentation says <SAT_NUMBER> is the actual numeric sat number, not degree, percentile or decimal notation.

Transaction and UTXO data

Endpoint Returns What it enables
/r/tx/<TRANSACTION_ID> Serialized transaction hex Local Bitcoin transaction decoding.
/r/utxo/<OUTPOINT> UTXO value plus indexed inscriptions, runes and sat ranges when the corresponding indices are available Asset-aware UTXO inspection and ownership-state interfaces.

The transaction endpoint carries the same backwards-compatibility intent as /r/block if Bitcoin serialization ever changes incompatibly.

Legacy plain-text shortcuts

For backwards compatibility, the documentation also lists plain-text routes:

  • /blockheight
  • /blockhash
  • /blockhash/<HEIGHT>
  • /blocktime

New work should understand that these coexist with the /r/ JSON-oriented namespace rather than treating them as identical response formats.

What recursion makes possible

The official documentation names remixing, shared code and assets, generative art, and layered image composition as examples. The capability has since grown into a broader application substrate. Current recursion documentation

Reusable on-chain software
Libraries such as Three.js and other Ordinals Public Goods can be addressed once and reused by many inscriptions.
Chain-native applications
/r/block and /r/tx let an inscription decode Bitcoin structures locally rather than depending on an application-specific JSON API.
Provenance-aware interfaces
Parent and child endpoints let applications navigate provenance directly.
Sat-aware experiences
With a sat index, an application can react to inscription stacks and specific sat identities.
Delegated content systems
The recursive namespace exposes both normal content resolution and undelegated content, allowing applications to inspect delegation explicitly.

The result is a dependency graph. An inscription can be immutable while still depending on other immutable inscriptions and on stable recursive interfaces supplied by ord server.

Early development

12 June 2023
PR #2174, “Document recursion”, was merged. The documentation described recursion as an exception to inscription sandboxing and named shared code, images, generative art and compositional assets as use cases. Direct repository record
15 June 2023
PR #2175, “Recursive Endpoints”, was merged, adding the first documented recursive chain-data routes. Direct repository record
1–7 November 2023
PR #2604 added /r/metadata/<INSCRIPTION_ID> on 1 November; it shipped in ord 0.11.0 on 7 November. This separated inscription metadata from inscription content as a recursively queryable object. Metadata recursion PR · 0.11.0 release
23–24 November 2023
PR #2680 merged sat-based recursive lookup with pagination and positional indexing on 23 November, shipping in ord 0.12.0 the next day. The same 0.12.0 release also shipped PR #2431, the first /r/children/<INSCRIPTION_ID> recursive endpoint. Sat stacks and parent-child descendants therefore became first-class recursive address spaces in the same tagged release. Sat recursion PR · Children recursion PR · 0.12.0 release
21 February–11 March 2024
PR #2628 merged /r/inscription/<INSCRIPTION_ID> on 21 February and shipped in ord 0.16.0 on 11 March. Recursive inscriptions could now request structured inscription details rather than only content, metadata or relationship lists. Inscription-details PR · 0.16.0 release
22 May–9 July 2024
PR #3749 merged the first /r/parents/<INSCRIPTION_ID> and paginated parent-ID routes on 22 May. PR #3771 followed on 30 May with richer child-inscription responses instead of IDs alone. Both shipped in ord 0.19.0 on 9 July. This came after multi-parent indexing itself, which had shipped in 0.17.0, so provenance could be indexed before inscriptions had a recursive reverse-ancestry endpoint, and child IDs were recursively available before richer child objects. Parent recursion PR · Rich child recursion PR · 0.19.0 release · Inscription provenance
26 October 2024
PR #3932 added /r/undelegated-content/<INSCRIPTION_ID> and shipped the same day in ord 0.21.2. A delegated inscription could now recursively recover its own original body rather than only the content selected by its delegate. Undelegated-content PR · 0.21.2 release · Inscription delegation
23 December 2024
PR #4148 added /r/utxo/<OUTPOINT> and shipped the same day in ord 0.22.1. This extended recursion from inscription- and sat-centric queries to an unspent-output view that can expose value and indexed assets. The route was later moved into the dedicated recursive module by PR #4287 on 21 March 2025, a code-organization change that shipped in 0.23.0 rather than the route's introduction. UTXO recursion PR · 0.22.1 release · Recursive-module move
24–27 January 2025
PR #4113 merged /r/sat/<SAT_NUMBER>/at/<INDEX>/content on 24 January, letting a recursive caller fetch the content of a particular inscription in a sat's stack directly. Three days later, PR #4147 merged /r/tx/<TRANSACTION_ID>, a proxy to Bitcoin Core raw transaction hex. Both shipped in ord 0.22.2 on 27 January. Sat-content PR · Raw-transaction PR · 0.22.2 release
17 February–31 March 2025
PR #4088 merged richer parent-inscription routes, /r/parents/<ID>/inscriptions and its paginated form, on 17 February. They shipped in ord 0.23.0 on 31 March. Parent IDs and parent details therefore have distinct endpoint histories. Direct repository record · 0.23.0 release
12 September 2026
/r/block/<QUERY> merged through PR #4563 after issue #4562 proposed exposing a complete serialized block to recursive inscriptions. Proposal · Merged implementation

The sequence is revealing: recursion did not arrive as today's endpoint set in one release. It accumulated in layers: shared resources and chain-tip primitives first, then metadata, sats and children, then structured inscription details, richer provenance and delegation inspection, then raw transaction and UTXO access, and finally complete serialized blocks. For historical claims, “recursion existed” is therefore less precise than naming the endpoint and the ord release that actually exposed it.

Merge, release and deployment

As of 26 September 2026, the repository's latest tagged release is still ord 0.29.0 from 5 August 2026. The raw-block endpoint merged on 12 September, so it exists on master but is not yet in a tagged release. Latest tagged release · Merge record

A server operator can run master or a custom build, so merge status, release status and live deployment remain separate claims.

Relevance to Bitmap

Bitmap derives Districts from blocks and Parcels from transactions. Raw block recursion gives an inscription a route to fetch the source Bitcoin block and decode transaction structure locally.

That changes the available infrastructure, not the Bitmap standard. Bitmap validity remains a separate application-layer rule system.

Open research

Open question
When the first post-0.29.0 tagged ord release appears, verify which of the current master recursive endpoints ship in that release.
Open question
Locate the earliest mainnet inscriptions that used recursive endpoints and distinguish demonstrations from sustained production use.
Open question
Complete the remaining early chronology for the chain-tip family (/r/blockhash, /r/blockheight, /r/blockinfo, /r/blocktime) and the original shared /content/<INSCRIPTION_ID> route. The archive now dates metadata, sat, child, inscription-detail, parent, delegation, UTXO and raw-transaction recursion separately.