Preserve validation-pass coordinates in a Tezos block index
Operation hashes in a Tezos block are grouped into validation passes. Flattening the response too early loses the coordinates needed for a targeted operation lookup.
Retain both array indices
Set BLOCK to the exact block hash and inspect the nested arrays. Enumerate the outer array for the validation pass and the inner array for the operation offset. Empty lists still occupy their pass position.
octez-client rpc get "/chains/main/blocks/$BLOCK/operation_hashes"
If the fourth array contains two hashes, the second has coordinates pass 3, offset 1. Use the block operations RPC at those two indices to retrieve the group, then enumerate its contents separately.
Distinguish an operation group from its actions
One hashed group can contain several manager contents and internal operations. A count of hashes measures groups, while an application counting transfers needs to inspect kinds and execution results. Keep the protocol version with assumptions about pass layout. octez.tezos.com Octez protocol documentation