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

Owning wrapper over a `btck&lowbar;Block`, a full block with its transactions&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class Block
    : public xref:btck/Handle-046.adoc[Handle&lt;btck&lowbar;Block, btck&lowbar;block&lowbar;copy, btck&lowbar;block&lowbar;destroy&gt;]
----

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `xref:btck/Handle-046.adoc[Handle&lt;btck&lowbar;Block, btck&lowbar;block&lowbar;copy, btck&lowbar;block&lowbar;destroy&gt;]`
| Owning RAII handle for a copyable C object of type `CType&period;`
|===

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:btck/Block/2constructor-0f.adoc[`Block`]         [.small]#[constructor]#
| Constructors
| xref:btck/Block/operator_assign-02.adoc[`operator&equals;`] 
| Assignment operators
| xref:btck/Block/Check.adoc[`Check`] 
| Runs the requested consensus checks on the block&period;
| xref:btck/Block/CountTransactions.adoc[`CountTransactions`] 
| Returns the number of transactions in the block&period;
| xref:btck/Block/GetHash.adoc[`GetHash`] 
| Returns the block hash&period;
| xref:btck/Block/GetHeader.adoc[`GetHeader`] 
| Returns the block header&period;
| xref:btck/Block/GetTransaction.adoc[`GetTransaction`] 
| Returns a single transaction by index&period;
| xref:btck/Block/ToBytes.adoc[`ToBytes`] 
| Serializes the block to its raw bytes&period;
| xref:btck/Block/Transactions-02.adoc[`Transactions`] 
| Returns a range over all transactions in the block&period;
| xref:btck/Block/get-00.adoc[`get`] 
| Returns the owned C handle&period;
|===


== Protected Data Members

[cols="1,4"]
|===
| Name| Description
| xref:btck/Block/m_ptr.adoc[`m&lowbar;ptr`] 
| The owned C handle&period;
|===



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