Owning wrapper over a btck_Block, a full block with its transactions.
Declared in <kernel/bitcoinkernel_wrapper.h>
class Block
: public Handle<btck_Block, btck_block_copy, btck_block_destroy>
| Name | Description |
|---|---|
Handle<btck_Block, btck_block_copy, btck_block_destroy> | Owning RAII handle for a copyable C object of type CType. |
| Name | Description |
|---|---|
Block [constructor] | Constructors |
operator= | Assignment operators |
Check | Runs the requested consensus checks on the block. |
CountTransactions | Returns the number of transactions in the block. |
GetHash | Returns the block hash. |
GetHeader | Returns the block header. |
GetTransaction | Returns a single transaction by index. |
ToBytes | Serializes the block to its raw bytes. |
Transactions | Returns a range over all transactions in the block. |
get | Returns the owned C handle. |
| Name | Description |
|---|---|
m_ptr | The owned C handle. |