[#CBlockIndex-GetBlockPos]
= xref:CBlockIndex.adoc[CBlockIndex]::GetBlockPos
:relfileprefix: ../
:mrdocs:

Returns the on&hyphen;disk position of this block&apos;s data&period;

== Synopsis

Declared in `&lt;chain&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e18da6808), requires&lowbar;capability(0x7f2e18c0a968), requires&lowbar;capability(0x7f2e3219cdc8), requires&lowbar;capability(0x7f2e348011f8), requires&lowbar;capability(0x7f2e331bb658), requires&lowbar;capability(0x7f2e32e735b8), requires&lowbar;capability(0x7f2e42eecf08), requires&lowbar;capability(0x7f2e2ad45878), requires&lowbar;capability(0x7f2e318b80f8), requires&lowbar;capability(0x7f2e283ee058), requires&lowbar;capability(0x7f2e29d40468)&rsqb;&rsqb;
xref:FlatFilePos.adoc[FlatFilePos]
GetBlockPos() const;
----

== Return Value

The file position, or a default position if the block data is not available&period;


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