[#txindex-02-BlockTxPosition]
= xref:txindex-02.adoc[txindex]::BlockTxPosition
:relfileprefix: ../
:mrdocs:

The location of a transaction&colon; the sequence number of the block that contains it and the transaction&apos;s serialized byte offset from the start of that block (including the header), so the on&hyphen;disk position is simply block&lowbar;data&lowbar;pos &plus; tx&lowbar;offset&lowbar;in&lowbar;block&period;

== Synopsis

Declared in `&lt;index&sol;txindex&lowbar;key&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct BlockTxPosition;
----

== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:txindex-02/BlockTxPosition/block_seq.adoc[`block&lowbar;seq`] 
| Sequence number of the block that contains the transaction&period;
| xref:txindex-02/BlockTxPosition/tx_offset_in_block.adoc[`tx&lowbar;offset&lowbar;in&lowbar;block`] 
| Byte offset of the transaction from the start of the block, including the header&period;
|===


== Static Data Members

[cols="1,4"]
|===
| Name| Description
| xref:txindex-02/BlockTxPosition/TX_OFFSET_SIZE.adoc[`TX&lowbar;OFFSET&lowbar;SIZE`] 
| Number of bytes used to encode tx&lowbar;offset&lowbar;in&lowbar;block on disk (3&hyphen;byte big&hyphen;endian)&period;
|===


== Friends

[cols="1,4"]
|===
| Name| Description
| `xref:txindex-02/operator_eq.adoc[txindex::operator&equals;&equals;]`
| Compare two positions for equality by block sequence and offset&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
