[#btck-ChainMan]
= xref:btck.adoc[btck]::ChainMan
:relfileprefix: ../
:mrdocs:

Owning wrapper over a `btck&lowbar;ChainstateManager`, the entry point for block processing&period;

== Synopsis

Declared in `&lt;kernel&sol;bitcoinkernel&lowbar;wrapper&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class ChainMan;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:btck/ChainMan/2constructor.adoc[`ChainMan`]         [.small]#[constructor]#
| Constructs the manager from a context and its options&period;
| xref:btck/ChainMan/GetBestEntry.adoc[`GetBestEntry`] 
| Returns the best (most&hyphen;work) known block tree entry&period;
| xref:btck/ChainMan/GetBlockTreeEntry.adoc[`GetBlockTreeEntry`] 
| Looks up a block tree entry by hash&period;
| xref:btck/ChainMan/GetChain.adoc[`GetChain`] 
| Returns a view of the active chain&period;
| xref:btck/ChainMan/ImportBlocks.adoc[`ImportBlocks`] 
| Imports blocks from the given block files&period;
| xref:btck/ChainMan/ProcessBlock.adoc[`ProcessBlock`] 
| Validates and connects a block to the chain&period;
| xref:btck/ChainMan/ProcessBlockHeader.adoc[`ProcessBlockHeader`] 
| Validates and stores a block header&period;
| xref:btck/ChainMan/ReadBlock.adoc[`ReadBlock`] 
| Reads a full block from disk for a tree entry&period;
| xref:btck/ChainMan/ReadBlockSpentOutputs.adoc[`ReadBlockSpentOutputs`] 
| Reads the spent&hyphen;output undo data for a block&period;
|===



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