[#btck-Block] = xref:btck.adoc[btck]::Block :relfileprefix: ../ :mrdocs: Owning wrapper over a `btck_Block`, a full block with its transactions. == Synopsis Declared in `<kernel/bitcoinkernel_wrapper.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class Block : public xref:btck/Handle-046.adoc[Handle<btck_Block, btck_block_copy, btck_block_destroy>] ---- == Base Classes [cols="1,4"] |=== | Name| Description | `xref:btck/Handle-046.adoc[Handle<btck_Block, btck_block_copy, btck_block_destroy>]` | Owning RAII handle for a copyable C object of type `CType.` |=== == 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=`] | Assignment operators | xref:btck/Block/Check.adoc[`Check`] | Runs the requested consensus checks on the block. | xref:btck/Block/CountTransactions.adoc[`CountTransactions`] | Returns the number of transactions in the block. | xref:btck/Block/GetHash.adoc[`GetHash`] | Returns the block hash. | xref:btck/Block/GetHeader.adoc[`GetHeader`] | Returns the block header. | xref:btck/Block/GetTransaction.adoc[`GetTransaction`] | Returns a single transaction by index. | xref:btck/Block/ToBytes.adoc[`ToBytes`] | Serializes the block to its raw bytes. | xref:btck/Block/Transactions-02.adoc[`Transactions`] | Returns a range over all transactions in the block. | xref:btck/Block/get-00.adoc[`get`] | Returns the owned C handle. |=== == Protected Data Members [cols="1,4"] |=== | Name| Description | xref:btck/Block/m_ptr.adoc[`m_ptr`] | The owned C handle. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#