Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
btck::Block Class Reference

#include <bitcoinkernel_wrapper.h>

Inheritance diagram for btck::Block:
[legend]
Collaboration diagram for btck::Block:
[legend]

Public Member Functions

 Block (const std::span< const std::byte > raw_block)
 Block (btck_Block *block)
size_t CountTransactions () const
TransactionView GetTransaction (size_t index) const
BlockHash GetHash () const
BlockHeader GetHeader () const
std::vector< std::byte > ToBytes () const
Public Member Functions inherited from btck::Handle< btck_Block, btck_block_copy, btck_block_destroy >
 Handle (btck_Block *ptr)
Handleoperator= (const Handle &other)
 ~Handle ()
btck_Blockget ()

Additional Inherited Members

Protected Attributes inherited from btck::Handle< btck_Block, btck_block_copy, btck_block_destroy >
btck_Blockm_ptr

Detailed Description

Definition at line 770 of file bitcoinkernel_wrapper.h.

Constructor & Destructor Documentation

◆ Block() [1/2]

btck::Block::Block ( const std::span< const std::byte > raw_block)
inline

Definition at line 773 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:

◆ Block() [2/2]

btck::Block::Block ( btck_Block * block)
inline

Definition at line 778 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:

Member Function Documentation

◆ CountTransactions()

size_t btck::Block::CountTransactions ( ) const
inline

Definition at line 780 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetHash()

BlockHash btck::Block::GetHash ( ) const
inline

Definition at line 792 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetHeader()

BlockHeader btck::Block::GetHeader ( ) const
inline

Definition at line 797 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetTransaction()

TransactionView btck::Block::GetTransaction ( size_t index) const
inline

Definition at line 785 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ToBytes()

std::vector< std::byte > btck::Block::ToBytes ( ) const
inline

Definition at line 802 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: