[#GetLocator]
= GetLocator
:mrdocs:

Get a locator for a block index entry&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:CBlockLocator.adoc[CBlockLocator]
GetLocator(xref:CBlockIndex.adoc[CBlockIndex] const* index);
----

== Return Value

A block locator referencing the given entry and its ancestors&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *index*
| The block index entry to build a locator for&period;
|===


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