Walk nested ANS-104 bundles without losing parentage

A DataItem can itself contain a bundle. An Arweave indexer that only expands outer transactions will miss descendants stored inside those items.

Record a path per discovery

Parse T, validate each item and inspect B's own bundle format and version tags before interpreting its data as a nested bundle. Store C's immediate parent B as well as the outer transaction T. This allows an auditor to reproduce the exact nesting and distinguish it from another occurrence of the same signed item.

transaction T
  item A: ordinary payload
  item B: Bundle-Format=binary, Bundle-Version=2.0.0
    item C: ordinary payload

Bound recursive work

Set explicit depth, byte and item budgets and retain a resumable marker when a local budget is reached. The format permits multiple nesting levels. Reaching an indexer's operational limit is evidence of incomplete traversal and should not be reported as an empty nested bundle.

Sources