[#BaseIndex-2constructor]
= xref:BaseIndex.adoc[BaseIndex]::BaseIndex
:relfileprefix: ../
:mrdocs:

Construct the index over a given chain interface&period;

== Synopsis

Declared in `&lt;index&sol;base&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
BaseIndex(
    std::unique&lowbar;ptr&lt;interfaces::Chain&gt; chain,
    std::string name,
    std::string thread&lowbar;name);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *chain*
| Interface used to query the blockchain&period;
| *name*
| Human&hyphen;readable name of the index&period;
| *thread&lowbar;name*
| Name given to the background sync thread&period;
|===


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