[#txindex-02-BlockTxPosition] = xref:txindex-02.adoc[txindex]::BlockTxPosition :relfileprefix: ../ :mrdocs: The location of a transaction: the sequence number of the block that contains it and the transaction's serialized byte offset from the start of that block (including the header), so the on‐disk position is simply block_data_pos + tx_offset_in_block. == Synopsis Declared in `<index/txindex_key.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct BlockTxPosition; ---- == Data Members [cols="1,4"] |=== | Name| Description | xref:txindex-02/BlockTxPosition/block_seq.adoc[`block_seq`] | Sequence number of the block that contains the transaction. | xref:txindex-02/BlockTxPosition/tx_offset_in_block.adoc[`tx_offset_in_block`] | Byte offset of the transaction from the start of the block, including the header. |=== == Static Data Members [cols="1,4"] |=== | Name| Description | xref:txindex-02/BlockTxPosition/TX_OFFSET_SIZE.adoc[`TX_OFFSET_SIZE`] | Number of bytes used to encode tx_offset_in_block on disk (3‐byte big‐endian). |=== == Friends [cols="1,4"] |=== | Name| Description | `xref:txindex-02/operator_eq.adoc[txindex::operator==]` | Compare two positions for equality by block sequence and offset. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#